/* Change these to re-brand the whole site. */
:root {
  --accent: #6c3cf0;      /* hero + header colour */
  --accent-2: #ffcf3f;    /* highlights */
  --cta: #12c2e9;         /* links */
  --bg: #0b0b0f;
  --surface: #17171f;
  --text: #f4f4f6;
  --muted: #a3a3b2;
}
* { box-sizing: border-box; }
body { margin: 0; font: 400 17px/1.65 Poppins, system-ui, sans-serif; color: var(--text); background: var(--bg); }
a { color: var(--cta); }
img { max-width: 100%; display: block; }
.wrap { max-width: 1140px; margin: 0 auto; padding: 0 20px; }

/* Header sits on the accent colour */
.top { position: sticky; top: 0; z-index: 10; box-shadow: 0 2px 12px rgba(0,0,0,.25); background: var(--accent); display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center; padding: 0 20px; }
.logo { display: flex; align-items: center; gap: 14px; color: #fff; text-decoration: none; font-weight: 800; font-size: 22px; letter-spacing: 2px; text-transform: uppercase; }
.logo .mark { width: 56px; height: 56px; margin: 10px 0; }
.top nav, footer nav { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; }
.top nav a { color: #fff; text-decoration: none; font-weight: 600; text-transform: uppercase; font-size: 14px; letter-spacing: 1px; }
.top nav a:hover { color: var(--accent-2); }

/* Hero: bold colour, giant stacked headline, diagonal pattern */
.hero { background: var(--accent); position: relative; overflow: hidden; padding: 60px 0 90px;
  background-image: repeating-linear-gradient(135deg, rgba(255,255,255,.05) 0 40px, transparent 40px 80px); }
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 70px; background: var(--bg); clip-path: polygon(0 100%, 100% 0, 100% 100%); }
.hero-grid { display: grid; grid-template-columns: 1fr; gap: 40px; align-items: center; position: relative; z-index: 1; }
.hero-grid:has(.hero-img) { grid-template-columns: 1fr 1.3fr; }
.hero h1 { margin: 0; font-weight: 800; line-height: .95; font-size: clamp(56px, 11vw, 140px); color: #fff; text-shadow: 0 6px 24px rgba(0,0,0,.25); }
.hero h1 span { display: block; }
.hero h1 small { display: block; font-size: .38em; font-weight: 600; margin-top: .3em; color: var(--accent-2); }
.hero-img { border-radius: 20px; box-shadow: 0 20px 60px rgba(0,0,0,.35); transform: rotate(-2deg); }
.hero-small { padding: 40px 0 80px; }
.hero-small h1 { font-size: clamp(36px, 6vw, 64px); }

.intro { text-align: center; font-size: clamp(18px, 2.2vw, 24px); color: #ddd; max-width: 780px; padding: 40px 20px 20px; }

/* Games grid: square cover cards with overlaid title + store badge */
#games { scroll-margin-top: 80px; }
.kicker { text-align: center; text-transform: uppercase; letter-spacing: 2px; font-size: 18px; margin: 40px 0 28px; }
.games { list-style: none; padding: 0; margin: 0 0 80px; display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(260px, 340px)); justify-content: center; }
.game a { position: relative; display: block; aspect-ratio: 1; border-radius: 18px; overflow: hidden; background: var(--surface); color: #fff; text-decoration: none; }
.game img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.game a:hover img { transform: scale(1.06); }
/* Dark gradient over the whole tile so text stays readable on any artwork */
.game-info { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; padding: 18px; text-align: center;
  background: linear-gradient(180deg, rgba(0,0,0,0) 30%, rgba(0,0,0,.55) 58%, rgba(0,0,0,.92) 100%); }
.game h3 { margin: 0; font-size: 21px; font-weight: 800; text-shadow: 0 2px 8px rgba(0,0,0,.6); }
.game p { margin: .25rem 0 .75rem; font-size: 14px; color: #ddd; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.badge { align-self: center; display: inline-flex; align-items: center; gap: 8px; background: #000; border: 1px solid #a6a6a6; border-radius: 8px; padding: 5px 12px 5px 9px; font-weight: 600; font-size: 15px; line-height: 1.1; text-align: left; }
.badge svg { width: 22px; height: 22px; }
.badge small { display: block; font-size: 9px; font-weight: 400; text-transform: uppercase; }

/* Markdown pages */
.prose { max-width: 760px; padding-bottom: 80px; }
.prose h2 { margin-top: 2em; }
.contact-form { display: grid; gap: 18px; margin-top: 2rem; }
.contact-form label { display: grid; gap: 6px; font-weight: 600; font-size: 15px; }
.contact-form input, .contact-form textarea { font: inherit; color: var(--text); background: var(--surface); border: 2px solid #2a2a36; border-radius: 12px; padding: 12px 14px; }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--accent); }
.contact-form button { justify-self: start; font: inherit; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; color: #fff; background: var(--accent); border: 0; border-radius: 12px; padding: 14px 32px; cursor: pointer; }
.contact-form button:hover { filter: brightness(1.15); }
.contact-form .trap { display: none; }

footer { background: #000; padding: 50px 0 30px; color: var(--muted); font-size: 14px; }
footer .wrap { display: grid; gap: 22px; justify-items: center; text-align: center; }
footer .logo .mark { width: 44px; height: 44px; }
footer nav a { color: #fff; text-decoration: none; text-transform: uppercase; font-weight: 600; letter-spacing: 1px; }
footer nav a:hover { color: var(--accent-2); }
footer address { font-style: normal; line-height: 1.6; }

@media (max-width: 720px) {
  .hero-grid:has(.hero-img) { grid-template-columns: 1fr; }
  .logo .mark { width: 44px; height: 44px; margin-left: 16px; }
  .top { padding: 0 16px 12px 0; }
  .top nav { padding-left: 16px; }
}
