/* Kardashev Garden: the blueprint look of the game and the banner. Navy
   grid paper, white lines, the swarm's orange for anything to press. Phone
   first; the column widens a little on big screens. No web fonts (nothing
   loaded from anyone else): titles are pixel-font SVGs, text is the
   system's own. */
:root {
  --bg: #0f2a4a; --grid: #16365c; --plate: #0b2240; --orbit: #3d6b9a;
  --body: #e8f1ff; --dim: #8aa6c8; --cyan: #7fd3ff; --swarm: #ff8a5c; --swarm-dim: #b05a3a;
  --text: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, Menlo, Consolas, monospace;
}
* { box-sizing: border-box; }
html { background: var(--bg); color: var(--body); }
body {
  margin: 0; min-height: 100dvh; font: 17px/1.55 var(--text);
  /* grid paper */
  background: linear-gradient(var(--grid) 1px, transparent 1px) 0 0 / 24px 24px,
              linear-gradient(90deg, var(--grid) 1px, transparent 1px) 0 0 / 24px 24px var(--bg);
}
/* the drifting swarm behind everything (bg.js); pixel-sharp */
#sky { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; image-rendering: pixelated; pointer-events: none; }
main, footer { position: relative; z-index: 1; }
main { width: min(100% - 32px, 560px); margin: 0 auto; padding: 64px 0 24px; }
a { color: var(--cyan); }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid var(--swarm); outline-offset: 2px; }

/* a blueprint title block: a darker plate, a ruled frame, a dotted inner rule */
.block {
  background: var(--plate); border: 2px solid var(--orbit); padding: 14px 18px;
  outline: 2px dotted var(--orbit); outline-offset: -8px;
}
.title { display: block; margin: 0 auto; image-rendering: pixelated; }
/* the studio, small in the top left corner: the logo and its pixel name */
.studio { position: absolute; z-index: 2; top: 14px; left: 16px; display: flex; align-items: center; gap: 8px; text-decoration: none; }
.studio img { image-rendering: pixelated; }
.studio-name { height: 10px; width: auto; }
/* the game: its pixel name in a title block, the subtitle under a dotted rule */
.hero { padding: 22px 18px 18px; text-align: center; }
.title.game { width: 92%; max-width: 440px; }
.hero .subtitle { margin: 16px 0 0; padding-top: 14px; border-top: 1px dotted var(--orbit); }
.title.sub { width: 64%; max-width: 270px; }
h1 { margin: 0; }
.label { font: 13px/1.4 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--dim); }

.game { margin-top: 28px; text-align: center; }
/* the page's words sit in bordered panels like the title block, so they read clearly over the moving background */
.panel, .about, .signup {
  background: var(--plate); border: 2px solid var(--orbit); padding: 16px 18px;
  outline: 1px dotted var(--orbit); outline-offset: -7px;
}
.game .status { margin: 16px 0 0; }
.status .label { display: inline-block; padding: 5px 12px; color: var(--cyan); background: var(--plate); border: 1px solid var(--orbit); }
/* the clip, in an instrument panel like the game's info panel: a darker
   plate, a cyan double rule, a rivet in each corner, a label strip on top */
.screen {
  position: relative; width: min(100%, 320px); margin: 22px auto 0; padding: 10px;
  background: #071a30; border: 3px double var(--cyan); box-shadow: 0 0 0 6px #071a30, 0 0 0 7px var(--orbit);
}
.screen::before, .screen::after, .screen figcaption::before, .screen figcaption::after {
  content: ""; position: absolute; width: 4px; height: 4px; background: var(--cyan);
}
.screen::before { top: 3px; left: 3px; } .screen::after { top: 3px; right: 3px; }
.screen figcaption::before { bottom: 3px; left: 3px; } .screen figcaption::after { bottom: 3px; right: 3px; }
.screen figcaption { position: static; margin: 0 0 8px; padding: 2px 0 6px; text-align: left; color: var(--cyan);
                     border-bottom: 1px dotted var(--orbit); }
.clip { display: block; width: 100%; aspect-ratio: 9 / 16; background: var(--plate); border: 1px solid var(--orbit); object-fit: cover; }
/* the small print sits on a soft navy plate, so the drifting dots behind never break up a letter */
.sheet { background: rgb(15 42 74 / 0.88); box-shadow: 0 0 0 10px rgb(15 42 74 / 0.88); }
.about { margin: 20px 0 0; text-align: left; }
.about p { margin: 0 0 12px; }
/* the description: a heading (diamond, pixel name, a rule fading out), the count-up, three numbered points */
.about-head { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; }
.about-head::before { content: ""; width: 7px; height: 7px; background: var(--cyan); transform: rotate(45deg); flex: none; }
.about-head img { height: 12px; width: auto; image-rendering: pixelated; }
.about-head::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, var(--orbit), transparent); }
.about .lead { margin: 0 0 4px; }
/* the family tree graphic (tree.js) */
.tree { margin: 14px 0 6px; padding: 8px; background: #071a30; border: 1px solid var(--orbit); }
.tree canvas { display: block; width: 100%; height: 230px; transition: opacity 0.2s; }
.count { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: center; gap: 4px 10px; margin: 14px 0 16px !important;
         font: 700 clamp(18px, 6vw, 26px) var(--mono); color: var(--swarm); }
.count i { font-style: normal; font-weight: 400; color: var(--orbit); }
.count .big { font-size: 1.25em; }
.count span, .count i { transition: opacity 0.35s; }
.count.hide span, .count.hide i { opacity: 0; }
.points { margin: 14px 0 0; padding: 0; list-style: none; }
.points li { display: grid; grid-template-columns: auto 1fr; gap: 12px; padding: 10px 0; border-top: 1px dotted var(--orbit); }
.points b { font: 700 13px/1.6 var(--mono); color: var(--cyan); }
.points h3 { margin: 0 0 2px; font: 700 13px/1.6 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; }
.points p { margin: 0 !important; font-size: 15px; color: var(--dim); }

/* the sign-up */
.signup { margin-top: 20px; text-align: left; }
.signup .row { display: flex; gap: 8px; }
.signup input[type=email] {
  flex: 1; min-width: 0; min-height: 44px; padding: 8px 12px; font: 16px var(--text);
  color: var(--body); background: var(--bg); border: 2px solid var(--orbit); border-radius: 0;
}
.signup button {
  min-height: 44px; padding: 8px 16px; font: 700 15px var(--mono); letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--bg); background: var(--swarm); border: 2px solid var(--swarm); border-radius: 0; cursor: pointer;
}
.signup button:disabled { opacity: 0.6; cursor: default; }
.signup .consent { display: flex; gap: 10px; align-items: flex-start; margin-top: 12px; font-size: 15px; color: var(--dim); }
.signup .consent input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--swarm); flex: none; }
.signup .note { margin: 8px 0 0 30px; font-size: 13px; line-height: 1.45; color: var(--dim); }
.signup .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.signup .ts { margin-top: 10px; }
.signup .msg { min-height: 1.5em; margin: 10px 0 0; font-size: 15px; }
.signup .msg.ok { color: var(--cyan); }
.signup .msg.bad { color: var(--swarm); }

/* the social links: a tile each, a pixel icon over the network's name and the handle, framed like the clip's panel */
.social { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 24px 0 0; padding: 0; list-style: none; }
.social a {
  display: flex; flex-direction: column; align-items: center; gap: 6px; min-height: 44px; padding: 14px 6px 12px;
  text-decoration: none; color: var(--body); background: #071a30; border: 3px double var(--cyan);
  box-shadow: 0 0 0 3px #071a30, 0 0 0 4px var(--orbit); transition: border-color 0.15s, color 0.15s;
}
.social .icon { width: 30px; height: 30px; color: var(--cyan); transition: color 0.15s; }
.social .net { font: 700 13px var(--mono); letter-spacing: 0.08em; text-transform: uppercase; }
.social .handle { font: 10px var(--mono); color: var(--dim); overflow-wrap: anywhere; text-align: center; }
.social a:hover, .social a:focus-visible { border-color: var(--swarm); }
.social a:hover .icon, .social a:focus-visible .icon { color: var(--swarm); }
.more { margin: 22px 0 0; text-align: center; }

/* the small print */
.sheet { margin-top: 24px; }
.sheet h1 { font: 700 22px/1.3 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; }
.sheet h2 { margin: 26px 0 6px; font: 700 15px/1.3 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--cyan); }
.sheet p { margin: 0 0 12px; }
.sheet .updated { color: var(--dim); font-size: 14px; }
.back { display: inline-block; margin-bottom: 4px; font: 13px var(--mono); text-transform: uppercase; letter-spacing: 0.06em; }

footer { width: min(100% - 32px, 560px); margin: 0 auto; padding: 24px 0 40px; text-align: center; font: 13px/1.8 var(--mono); color: var(--dim); }
footer a { color: var(--dim); }

@media (min-width: 700px) { main { padding-top: 80px; } .studio-name { height: 12px; } }
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }
