/* Static pages (about, how to play, FAQ, levels, 404) – Neon look of the game, no JavaScript. */
:root {
  --bg: #070a17;
  --bg2: #0d1330;
  --panel: rgba(18, 23, 50, 0.84);
  --border: rgba(120, 160, 255, 0.22);
  --text: #e8ecff;
  --dim: #9aa5d6;
  --accent: #3fd0ff;
  --accent-contrast: #04121a;
  --pink: #ff5fa2;
  --star: #ffd23f;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: var(--text);
  background: radial-gradient(ellipse at top, var(--bg2), var(--bg) 70%) fixed;
  font:
    17px/1.6 system-ui,
    -apple-system,
    'Segoe UI',
    Roboto,
    sans-serif;
}

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

a:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--star);
  outline-offset: 2px;
  border-radius: 6px;
}

h1,
h2,
h3 {
  line-height: 1.2;
}

h1 {
  font-size: clamp(2rem, 6vw, 3rem);
  margin: 0.4em 0 0.2em;
}

h2 {
  font-size: 1.5rem;
  margin: 1.8em 0 0.6em;
}

/* ---------------------------------------------------------------- header / footer */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 20px;
  padding: 10px max(16px, calc((100vw - 1100px) / 2));
  background: rgba(7, 10, 23, 0.92);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(8px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--text);
  text-decoration: none;
  text-shadow: 0 0 18px rgba(63, 208, 255, 0.5);
}

.brand-block {
  width: 0.45em;
  height: 0.9em;
  border-radius: 4px;
  background: linear-gradient(160deg, #ff8fc0, #ff3d8b);
  box-shadow: 0 0 14px rgba(255, 61, 139, 0.6);
  transform: rotate(-12deg);
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  flex: 1;
}

.site-nav a,
.lang {
  color: var(--dim);
  text-decoration: none;
  font-weight: 600;
  padding: 4px 0;
}

.site-nav a:hover,
.site-nav a[aria-current='page'],
.lang:hover {
  color: var(--text);
}

.site-nav a[aria-current='page'] {
  box-shadow: inset 0 -2px 0 var(--accent);
}

.site-main {
  width: min(1100px, 100%);
  margin: 0 auto;
  padding: 16px 16px 48px;
  flex: 1;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 22px;
  padding: 20px 16px;
  border-top: 1px solid var(--border);
  color: var(--dim);
  font-size: 0.9rem;
}

.site-footer a {
  color: var(--dim);
}

/* ---------------------------------------------------------------- buttons */

.btn {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
}

.btn:hover {
  border-color: var(--accent);
}

.btn.primary {
  background: var(--accent);
  color: var(--accent-contrast);
  border-color: transparent;
  box-shadow: 0 0 20px rgba(63, 208, 255, 0.35);
}

.btn.big {
  padding: 12px 24px;
  font-size: 1.1rem;
}

.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 24px 0;
}

.lead {
  font-size: 1.2rem;
  color: var(--dim);
  max-width: 60ch;
}

.note {
  color: var(--dim);
  font-size: 0.9rem;
}

/* ---------------------------------------------------------------- about */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 32px;
  align-items: center;
  margin-top: 24px;
}

.hero-img {
  width: 100%;
  height: auto;
  border-radius: 16px;
  border: 1px solid var(--border);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.features {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.features li,
.faq details,
.legend li,
.level-cards a,
.facts {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
}

.features li {
  padding: 18px 20px;
}

.features h3 {
  margin: 0 0 6px;
  color: var(--accent);
  font-size: 1.1rem;
}

.features p {
  margin: 0;
  color: var(--dim);
}

.shots {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px;
}

.shots figure {
  margin: 0;
}

.shots img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid var(--border);
}

.shots figcaption {
  color: var(--dim);
  font-size: 0.9rem;
  margin-top: 6px;
}

/* ---------------------------------------------------------------- how to play */

.keys {
  border-collapse: collapse;
  width: 100%;
  max-width: 720px;
}

.keys th,
.keys td {
  text-align: left;
  padding: 8px 12px 8px 0;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.keys th {
  white-space: nowrap;
  font-weight: normal;
}

kbd {
  font:
    600 0.9rem ui-monospace,
    monospace;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-bottom-width: 3px;
  border-radius: 6px;
  padding: 2px 8px;
}

.legend {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 12px;
}

.legend li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px 16px;
}

.legend svg {
  flex-shrink: 0;
}

.legend p {
  margin: 2px 0 0;
  color: var(--dim);
}

/* ---------------------------------------------------------------- FAQ */

.faq {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 820px;
}

.faq details {
  padding: 4px 18px;
}

.faq summary {
  cursor: pointer;
  font-weight: 700;
  padding: 10px 0;
}

.faq details p {
  margin: 0 0 14px;
  color: var(--dim);
}

/* ---------------------------------------------------------------- levels */

.level-cards {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}

.level-cards a {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px;
  height: 100%;
  color: var(--text);
  text-decoration: none;
}

.level-cards a:hover {
  border-color: var(--accent);
}

.level-cards svg,
.map svg {
  width: 100%;
  height: auto;
  max-height: 180px;
}

.map svg {
  max-height: 420px;
}

.level-cards .num {
  font-weight: 800;
  color: var(--star);
  margin-right: 4px;
}

.level-cards .meta {
  color: var(--dim);
  font-size: 0.85rem;
}

.crumbs {
  color: var(--dim);
  margin: 8px 0 0;
}

.level-detail {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.map {
  background: rgba(0, 0, 0, 0.25);
  border-radius: 16px;
  padding: 16px;
  text-align: center;
}

.facts {
  margin: 0;
  padding: 16px 20px;
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 8px 16px;
}

.facts dt {
  color: var(--dim);
}

.facts dd {
  margin: 0;
}

.pager {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 32px;
}

/* ---------------------------------------------------------------- 404 */

.not-found .site-main {
  text-align: center;
  padding-top: 12vh;
}

.not-found .cta {
  justify-content: center;
}

.big-404 {
  font-size: clamp(5rem, 20vw, 9rem);
  font-weight: 800;
  margin: 0;
  color: var(--pink);
  text-shadow: 0 0 40px rgba(255, 95, 162, 0.5);
}

/* ---------------------------------------------------------------- small screens */

@media (max-width: 760px) {
  .hero,
  .level-detail {
    grid-template-columns: 1fr;
  }
  .site-header .btn.primary {
    margin-left: auto;
  }
}
