/* fngl.games -- the studio landing page. Night purple and gas yellow, like
   Gas Dash; heavy system type, flat fills, thick dark ink lines. */
:root {
  --bg: #120c1e;
  --bg2: #24183a;
  --card: #1c1430;
  --ink: #1a1420;
  --fg: #ffffff;
  --muted: #c9c2d9;
  --gas: #e9e36a;
  --gas-dark: #9a9530;
  --lime: #9be22d;
  --line: rgba(255, 255, 255, .14);
  --heavy: "Arial Black", "Arial Bold", Roboto, system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { background: var(--bg); }
body {
  margin: 0; color: var(--fg); font: 500 17px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background:
    radial-gradient(1.5px 1.5px at 12% 18%, #fff8 50%, transparent 51%),
    radial-gradient(1px 1px at 72% 9%, #fff6 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 88% 32%, #fff5 50%, transparent 51%),
    radial-gradient(1px 1px at 33% 41%, #fff5 50%, transparent 51%),
    radial-gradient(1px 1px at 55% 22%, #fff7 50%, transparent 51%),
    radial-gradient(ellipse at 50% -10%, var(--bg2), var(--bg) 60%) no-repeat;
  min-height: 100vh;
}

/* One language at a time: the page has both, the html element says which.
   Danish without JavaScript (the markup's default). */
html[data-lang="da"] [lang="en"], html[data-lang="en"] [lang="da"] { display: none; }

a { color: inherit; }

/* --- header ---------------------------------------------------------------- */
.top {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  max-width: 1080px; margin: 0 auto; padding: 18px 16px;
}
.mark { display: flex; align-items: center; }
/* The fngl.games wordmark (brand/): white with the mint dot on the purple */
.mark img { display: block; height: 34px; width: auto; }
.flags { display: flex; gap: 8px; }
.flags button {
  width: 38px; height: 28px; padding: 0; border: 2px solid rgba(255, 255, 255, .55); border-radius: 6px;
  background: none; overflow: hidden; cursor: pointer; opacity: .7; transition: opacity .15s, transform .15s;
}
.flags button[aria-pressed="true"] { border-color: var(--gas); box-shadow: 0 0 0 2px var(--gas); opacity: 1; transform: scale(1.08); }
.flags svg { display: block; width: 100%; height: 100%; }

main { max-width: 1080px; margin: 0 auto; padding: 0 16px; }

/* --- hero ------------------------------------------------------------------ */
.hero { text-align: center; padding: 28px 0 34px; }
.hero h1 {
  margin: 0 auto 12px; max-width: 16ch; font: 900 clamp(32px, 6vw, 56px)/1.08 var(--heavy);
  text-shadow: 0 4px 0 var(--ink);
}
.hero p { margin: 0 auto; max-width: 40ch; color: var(--muted); font-size: 19px; }

/* --- games ----------------------------------------------------------------- */
.games { display: grid; grid-template-columns: 2fr 1fr; gap: 20px; align-items: stretch; }
.game {
  background: var(--card); border: 3px solid #fff; border-radius: 20px; overflow: hidden;
  box-shadow: 0 6px 0 var(--ink); display: flex; flex-direction: column;
}
.shot { position: relative; display: block; aspect-ratio: 16 / 9; background: #000; overflow: hidden; }
.shot img.a, .shot img.b {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .6s, transform .6s;
}
.shot img.b { opacity: 0; }
.shot:hover img.b, .shot:focus-visible img.b { opacity: 1; }
.shot:hover img, .shot:focus-visible img { transform: scale(1.03); }
.shot::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(18, 12, 30, .55), transparent 45%); }
.shot img.logo {
  position: absolute; z-index: 1; left: 50%; top: 4%; width: min(62%, 460px); transform: translateX(-50%);
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .45));
}
.game .body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 14px; }
.game .body p { margin: 0; }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { padding: 3px 12px; border-radius: 999px; border: 1.5px solid var(--line); font-size: 14px; color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; padding: 10px 22px; border-radius: 12px;
  border: 2px solid rgba(255, 255, 255, .7); background: rgba(255, 255, 255, .1); color: #fff;
  font-weight: 800; text-decoration: none; transition: transform .1s, box-shadow .1s;
}
.btn.play {
  background: var(--gas); color: var(--ink); border-color: #fff; font: 900 22px/1 var(--heavy);
  padding: 12px 28px; box-shadow: 0 4px 0 var(--gas-dark);
}
.btn:active { transform: translateY(2px); }
.btn.play:active { box-shadow: 0 2px 0 var(--gas-dark); }

.game.soon {
  border-style: dashed; border-color: rgba(255, 255, 255, .45); box-shadow: none; background: rgba(28, 20, 48, .6);
  align-items: center; justify-content: center; text-align: center; padding: 28px 20px; gap: 6px;
}
.soon h2 { margin: 8px 0 0; font: 900 22px/1.2 var(--heavy); }
.soon p { margin: 0; color: var(--muted); }
.puffs { position: relative; width: 120px; height: 70px; }
.puffs i {
  position: absolute; border-radius: 50%; background: var(--gas); border: 3px solid var(--ink);
  animation: puff 2.4s ease-in-out infinite;
}
.puffs i:nth-child(1) { width: 34px; height: 34px; left: 8px; top: 26px; animation-delay: .4s; }
.puffs i:nth-child(2) { width: 50px; height: 50px; left: 34px; top: 8px; }
.puffs i:nth-child(3) { width: 30px; height: 30px; left: 78px; top: 30px; animation-delay: .8s; }
@keyframes puff { 50% { transform: translateY(-6px) scale(1.06); } }

/* --- about ----------------------------------------------------------------- */
.about { text-align: center; padding: 48px 0 12px; }
.about h2 { margin: 0 0 10px; font: 900 28px/1.2 var(--heavy); color: var(--gas); text-shadow: 0 3px 0 var(--ink); }
.about p { margin: 0 auto; max-width: 62ch; color: var(--muted); }
.points { list-style: none; padding: 0; margin: 22px auto 0; display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.points li { display: flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 12px; background: var(--card); border: 1.5px solid var(--line); }
.points b { font-size: 20px; }

footer { text-align: center; padding: 40px 16px 32px; color: var(--muted); font-size: 14px; }

/* --- the privacy page ------------------------------------------------------ */
.page { max-width: 720px; margin: 0 auto; padding: 8px 16px 24px; }
.page h1 { font: 900 32px/1.15 var(--heavy); margin: 8px 0 16px; text-shadow: 0 3px 0 var(--ink); }
.page h2 { font: 900 20px/1.2 var(--heavy); margin: 26px 0 8px; color: var(--gas); }
.page p, .page li { color: var(--muted); }
.page a { color: var(--gas); }
.page code { font-size: 15px; color: #fff; }

/* --- small screens --------------------------------------------------------- */
@media (max-width: 760px) {
  .games { grid-template-columns: 1fr; }
  .mark img { height: 28px; }
  .hero { padding: 14px 0 24px; }
  .hero p { font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
