/* The look of arawra.net's own pages (the download page; the rest of the
   site is the game): the game's title screen — black, white rims, the pixel
   font for headings. */
:root {
  --ink: #fff;
  --muted: rgba(255, 255, 255, 0.72);
  --rim: rgba(255, 255, 255, 0.9);
  --panel: #000;
  --button: #050505;
}
* { box-sizing: border-box; }
/* Some boxes set their own display; hidden still hides them. */
[hidden] { display: none !important; }
html, body { margin: 0; background: #000; color: var(--ink); }
body {
  min-height: 100vh;
  padding: 16px;
  font-family: 'Courier New', Courier, monospace;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  isolation: isolate;
}
/* The title screen's faint grid. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: 0.32;
  z-index: -1;
}
main {
  width: min(560px, 100%);
  padding: 22px 30px 26px;
  background: var(--panel);
  border: 2px solid rgba(255, 255, 255, 0.88);
  border-radius: 6px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.72), 0 0 0 6px rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
  gap: 22px;
}
h1, h2, h3, p { margin: 0; }
h1 { text-align: center; font-size: 34px; }
h2 { font-size: 20px; }
.sub { text-align: center; font-size: 17px; font-weight: 900; }
a { color: var(--ink); }

/* The site's links: the name home, then Play, Download, Profile (the
   game's Login / Register) and About (its i screen). */
.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
}
.site-nav .brand { font-size: 20px; font-weight: 900; text-decoration: none; }
.site-nav nav { display: flex; flex-wrap: wrap; gap: 6px; }
.site-nav nav a {
  padding: 5px 9px;
  font-size: 14px;
  font-weight: 900;
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: 4px;
}
.site-nav nav a:hover, .site-nav nav a:focus-visible { color: #000; background: #fff; outline: none; }
.site-nav nav a[aria-current="page"] { border-color: var(--rim); }
.site-foot {
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.25);
  color: var(--muted);
  font-size: 13px;
  text-align: center;
  line-height: 1.6;
}
.site-foot nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 14px; margin-bottom: 4px; }
.site-foot nav a { font-weight: 900; }

.button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 42px;
  padding: 8px 14px;
  font: inherit;
  font-size: 17px;
  font-weight: 900;
  color: #fff;
  text-decoration: none;
  background: var(--button);
  border: 2px solid var(--rim);
  border-radius: 5px;
  box-shadow: 4px 4px 0 rgba(255, 255, 255, 0.14);
  cursor: pointer;
  transition: transform 0.08s ease, box-shadow 0.08s ease, background 0.15s, color 0.15s;
}
.button:hover, .button:focus-visible {
  color: #000;
  background: #fff;
  transform: translate(-1px, -1px);
  box-shadow: 5px 5px 0 rgba(255, 255, 255, 0.14);
  outline: none;
}
.button:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 rgba(255, 255, 255, 0.16); }
.button:disabled { opacity: 0.5; cursor: default; transform: none; }

/* Pixel-font text: the glyphs are a mask over the text colour, so hover
   colours still apply. The plain text stays for screen readers and search
   engines. */
.px { display: inline-block; background: currentColor; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; -webkit-mask-size: 100% 100%; mask-size: 100% 100%; vertical-align: middle; }
.px-done > .plain { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@media (max-width: 480px) {
  main { padding: 18px 16px 22px; }
  .site-nav { justify-content: center; }
  .site-nav nav { justify-content: center; }
}
