/* Velorush pages (Firebase Hosting): the game's dark look, no web fonts,
   no scripts, nothing loaded from other sites. The Polish pages sit in
   hosting/, their English versions in hosting/en/ (served at /en, /en/privacy,
   /en/support); every page links to its twin through the PL | EN switch. */
:root {
  --bg: #0b0d1a;
  --surface: #151a30;
  --surface-high: #222a48;
  --outline: #33406b;
  --text: #eef1fa;
  --text-dim: #8e98b8;
  --accent: #3df5ff;
  --crystal: #c77dff;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  color: var(--text);
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background:
    radial-gradient(1000px 480px at 85% -10%, rgba(61, 245, 255, 0.08), transparent 60%),
    radial-gradient(800px 480px at 0% 110%, rgba(199, 125, 255, 0.08), transparent 60%),
    var(--bg);
  background-attachment: fixed;
  min-height: 100vh;
  overflow-wrap: anywhere;
}

a { color: var(--accent); }

.wrap { max-width: 780px; margin: 0 auto; padding: 0 16px; }

/* Top bar: the logo (speed lines and the italic gradient name), the pages
   and the language switch. */
.top {
  position: sticky;
  top: 0;
  z-index: 5;
  border-bottom: 1px solid var(--outline);
  background: rgba(21, 26, 48, 0.92);
  backdrop-filter: blur(8px);
}
.top .wrap { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; }
.brand { display: flex; align-items: center; gap: 6px; margin-right: auto; text-decoration: none; }
.brand-lines { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; }
.brand-lines i { display: block; height: 3px; border-radius: 2px; background: linear-gradient(90deg, transparent, var(--accent)); }
.brand-lines i:nth-child(1) { width: 18px; }
.brand-lines i:nth-child(2) { width: 26px; }
.brand-lines i:nth-child(3) { width: 14px; }
.brand-name {
  padding-right: 4px;
  font-size: 26px;
  font-weight: 900;
  font-style: italic;
  letter-spacing: 1px;
  background: linear-gradient(90deg, var(--accent), var(--crystal));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.nav, .langs { display: flex; gap: 2px; padding: 4px; border: 1px solid var(--outline); border-radius: 14px; background: var(--surface); }
.nav a, .langs a { padding: 6px 12px; border-radius: 10px; color: var(--text-dim); font-size: 14px; font-weight: 800; line-height: 22px; text-decoration: none; white-space: nowrap; }
.nav a:hover, .langs a:hover { color: var(--text); }
.nav a[aria-current="page"] { background: var(--accent); color: var(--bg); }

/* PL | EN: the same page in the other language. */
.langs a { padding: 6px 9px; font-size: 12px; letter-spacing: 1px; }
.langs a[aria-current="true"] { background: var(--surface-high); color: var(--text); }

main { padding: 20px 0 40px; }

h1 { margin: 12px 0 4px; font-size: clamp(26px, 6vw, 36px); font-weight: 900; line-height: 1.15; }
h2 { margin: 32px 0 8px; color: var(--accent); font-size: 20px; line-height: 1.3; }
h3 { margin: 20px 0 4px; font-size: 16px; }
p, li { color: var(--text); }
ul { padding-left: 22px; }
li { margin: 4px 0; }

.meta { color: var(--text-dim); font-size: 14px; }
.lang { margin: 6px 0 0; font-size: 14px; font-weight: 700; }
.card { margin: 16px 0; padding: 4px 18px; border: 1px solid var(--outline); border-radius: 16px; background: var(--surface); }
.note { color: var(--text-dim); font-size: 14px; }

/* The game page. */
.hero { display: flex; align-items: center; gap: 20px; margin-top: 12px; }
.hero img { width: 96px; height: 96px; border-radius: 22px; box-shadow: 0 0 24px rgba(61, 245, 255, 0.25); }
.tagline { margin: 0; color: var(--text-dim); font-size: 17px; }
.buttons { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0; }
.btn { display: inline-block; padding: 10px 16px; border-radius: 12px; background: var(--surface-high); color: var(--text); font-weight: 800; letter-spacing: 1px; text-decoration: none; }
.btn-primary { background: var(--accent); color: var(--bg); }

/* Questions and answers. */
details { margin: 10px 0; padding: 0 16px; border: 1px solid var(--outline); border-radius: 14px; background: var(--surface); }
summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 0; cursor: pointer; font-weight: 800; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; flex: none; color: var(--accent); font-weight: 900; }
details[open] summary::after { content: "−"; }
details > :not(summary) { margin-top: 0; }

.footer { border-top: 1px solid var(--outline); padding: 18px 0 28px; color: var(--text-dim); font-size: 14px; }
.footer p { margin: 4px 0; color: var(--text-dim); }

/* A phone: the logo and the language switch on top, the pages below as tabs
   across the whole bar. */
@media (max-width: 600px) {
  .nav { order: 3; flex: 1 1 100%; }
  .nav a { flex: 1 1 auto; text-align: center; }
}

@media (max-width: 520px) {
  .hero { flex-direction: column; align-items: flex-start; gap: 12px; }
}
