/* Boom and Block - the site.
 *
 * One palette, taken from the game's own NeonUI, so the page and the thing it
 * is advertising look like the same product. Everything else here is layout.
 */

:root {
  --ink:        #0d0620;
  --ink-2:      #14092c;
  --panel:      rgba(255, 255, 255, 0.035);
  --line:       #7b3cff;
  --line-dim:   rgba(123, 60, 255, 0.35);
  --cyan:       #28f6ff;
  --magenta:    #ff3ad0;
  --text:       #d8f6ff;
  --text-dim:   #8fa8c8;
  --radius:     10px;
  --wide:       1040px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font: 16px/1.65 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  /* A wash of the game's horizon, so the page is not a flat black rectangle. */
  background-image:
    radial-gradient(ellipse 120% 60% at 50% 0%, rgba(123, 60, 255, 0.22), transparent 70%),
    radial-gradient(ellipse 100% 40% at 50% 100%, rgba(255, 58, 208, 0.10), transparent 70%);
  background-attachment: fixed;
}

a { color: var(--cyan); text-decoration-color: var(--line-dim); }
a:hover { color: #fff; }

h1, h2, h3 { line-height: 1.2; letter-spacing: 0.01em; }
h2 { margin-top: 2.4rem; color: var(--cyan); font-size: 1.5rem; }
h3 { margin-top: 1.6rem; color: var(--magenta); font-size: 1.1rem; }

code, kbd {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.92em;
}
kbd {
  border: 1px solid var(--line-dim);
  border-bottom-width: 2px;
  border-radius: 4px;
  padding: 0.05em 0.45em;
  background: rgba(0, 0, 0, 0.35);
  white-space: nowrap;
}
pre {
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid var(--line-dim);
  border-radius: var(--radius);
  padding: 0.9rem 1rem;
  overflow-x: auto;
}
pre code { font-size: 0.86rem; }

/* --- Chrome ------------------------------------------------------------- */

.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: 1rem; top: 1rem;
  z-index: 10;
  background: var(--ink-2);
  padding: 0.6rem 1rem;
  border: 1px solid var(--cyan);
  border-radius: 6px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 5;
  backdrop-filter: blur(10px);
  background: rgba(10, 4, 24, 0.82);
  border-bottom: 1px solid var(--line-dim);
}
.topbar > div {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 0.65rem 1.2rem;
  display: flex;
  align-items: center;
  gap: 1.1rem;
  flex-wrap: wrap;
}
.brand {
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--magenta);
  text-decoration: none;
  white-space: nowrap;
}
.brand:hover { color: #fff; }
.topbar nav { display: flex; gap: 1.1rem; flex-wrap: wrap; }
.topbar nav a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.93rem;
}
.topbar nav a:hover { color: var(--text); }
.topbar nav a[aria-current="page"] {
  color: var(--cyan);
  border-bottom: 2px solid var(--cyan);
}
.topbar .grow { flex: 1; }

main {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 1.5rem 1.2rem 4rem;
}

footer {
  border-top: 1px solid var(--line-dim);
  margin-top: 3rem;
  color: var(--text-dim);
  font-size: 0.88rem;
}
footer > div {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 1.6rem 1.2rem 2.4rem;
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
}
footer a { color: var(--text-dim); }

/* --- Hero --------------------------------------------------------------- */

.hero { text-align: center; padding: 2rem 0 0.5rem; }
.hero img.wordmark {
  width: min(560px, 88%);
  height: auto;
  filter: drop-shadow(0 0 28px rgba(255, 58, 208, 0.35));
}
.hero h1 {
  /* The wordmark carries the name visually; this is here for screen readers
   * and for the case where the image does not load. */
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
.tagline {
  font-size: 1.22rem;
  color: var(--text);
  max-width: 44ch;
  margin: 1rem auto 0;
}
.sub { color: var(--text-dim); max-width: 60ch; margin: 0.6rem auto 0; }

.cta { display: flex; gap: 0.8rem; justify-content: center; flex-wrap: wrap; margin: 1.8rem 0 0.4rem; }
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  border: 2px solid var(--line);
  background: rgba(123, 60, 255, 0.16);
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.03em;
}
.btn:hover { border-color: var(--cyan); background: rgba(40, 246, 255, 0.14); color: #fff; }
.btn.primary { border-color: var(--magenta); background: rgba(255, 58, 208, 0.18); }
.btn.primary:hover { border-color: #fff; }
.btn.ghost { border-color: var(--line-dim); background: transparent; }
.note { color: var(--text-dim); font-size: 0.9rem; margin-top: 0.7rem; }

/* --- Shots -------------------------------------------------------------- */

figure { margin: 1.4rem 0; }
figure img {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid var(--line-dim);
  border-radius: var(--radius);
}
figcaption {
  color: var(--text-dim);
  font-size: 0.87rem;
  margin-top: 0.5rem;
  text-align: center;
}
.shots {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.2rem;
}
.shots figure { margin: 0; }

/* --- Feature cards ------------------------------------------------------ */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
  margin-top: 1.2rem;
}
.card {
  background: var(--panel);
  border: 1px solid var(--line-dim);
  border-radius: var(--radius);
  padding: 1.1rem 1.2rem;
}
.card h3 { margin: 0 0 0.4rem; color: var(--cyan); font-size: 1.02rem; }
.card p { margin: 0; color: var(--text-dim); font-size: 0.94rem; }

/* --- Tables ------------------------------------------------------------- */

table { border-collapse: collapse; width: 100%; margin: 1rem 0; }
th, td {
  text-align: left;
  padding: 0.5rem 0.7rem;
  border-bottom: 1px solid var(--line-dim);
  vertical-align: top;
}
th { color: var(--magenta); font-weight: 600; white-space: nowrap; }

/* --- Panels, forms, the account area ------------------------------------ */

.panel {
  background: var(--panel);
  border: 1px solid var(--line-dim);
  border-radius: var(--radius);
  padding: 1.3rem 1.4rem;
  margin: 1.2rem 0;
}
.panel > :first-child { margin-top: 0; }

label { display: block; margin: 0.9rem 0 0.25rem; font-size: 0.9rem; color: var(--text-dim); }
input[type=text], input[type=email], input[type=password] {
  width: 100%;
  padding: 0.6rem 0.7rem;
  border-radius: 6px;
  border: 1px solid var(--line-dim);
  background: rgba(0, 0, 0, 0.4);
  color: var(--text);
  font: inherit;
}
input:focus { outline: 2px solid var(--cyan); outline-offset: 1px; }
button {
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  padding: 0.65rem 1.3rem;
  border-radius: 8px;
  border: 2px solid var(--line);
  background: rgba(123, 60, 255, 0.18);
  color: var(--text);
}
button:hover:not(:disabled) { border-color: var(--cyan); color: #fff; }
button:disabled { opacity: 0.55; cursor: progress; }
button.link {
  border: 0; background: none; color: var(--cyan);
  padding: 0; font-weight: 400; text-decoration: underline;
}

.msg { margin: 1rem 0 0; padding: 0.7rem 0.9rem; border-radius: 6px; font-size: 0.94rem; }
.msg.err { background: rgba(255, 58, 208, 0.12); border: 1px solid var(--magenta); }
.msg.ok  { background: rgba(40, 246, 255, 0.10); border: 1px solid var(--cyan); }
.msg:empty { display: none; }

.tabs { display: flex; gap: 0.5rem; margin-bottom: 0.4rem; flex-wrap: wrap; }
.tabs button {
  background: transparent;
  border: 1px solid var(--line-dim);
  padding: 0.45rem 1rem;
  font-weight: 500;
}
.tabs button[aria-selected="true"] {
  border-color: var(--cyan);
  background: rgba(40, 246, 255, 0.12);
  color: #fff;
}

.who { display: flex; gap: 1.2rem; align-items: center; flex-wrap: wrap; }
.who img {
  width: 96px; height: 96px;
  image-rendering: pixelated;
  border: 1px solid var(--line-dim);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.4);
}
.who .name { font-size: 1.3rem; color: var(--cyan); font-weight: 700; }

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.8rem;
  margin-top: 1rem;
}
.stat {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--line-dim);
  border-radius: 8px;
  padding: 0.7rem 0.9rem;
}
.stat b { display: block; font-size: 1.5rem; color: var(--text); font-weight: 700; }
.stat span { font-size: 0.8rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.05em; }

.hint { color: var(--text-dim); font-size: 0.88rem; }

[hidden] { display: none !important; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
