/* The pixel face, self-hosted (SIL OFL, fonts/OFL.txt): no third-party request, no GDPR question. */
@font-face { font-family: "Pixelify Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url("/site/fonts/pixelify-sans-700.woff2") format("woff2"); }
:root {
  --bg: #0f1115;
  --panel: #171b23;
  --line: #2a3140;
  --text: #e5e7eb;
  --muted: #9ca3af;
  --accent: #2563eb;
  --accent-hover: #3b82f6;
}
* { box-sizing: border-box; }
html { background: var(--bg); overflow-x: hidden; }
/* The terrain runs behind the whole page, as on factorio.com: a tall picture, scrolling with the
   page, a dark wash over it so the text reads, fading into the plain background at its end. */
body {
  margin: 0; padding: 0; color: var(--text); font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  /* The picture is 1.8x as tall as wide; the first layer fades it into the plain background
     over its last fifth, so the page below it has no seam. */
  /* The picture is drawn 2400 px wide whatever the window (dig.js PICTURE_MIN), centred, so a
     window resize never rescales the ground; a wider window shows the page colour beside it, the
     picture's edges fading into it. */
  background:
    linear-gradient(180deg, rgba(15, 17, 21, 0) 0%, rgba(15, 17, 21, 0) 78%, var(--bg) 100%) top center / 2400px 4320px no-repeat,
    linear-gradient(90deg, var(--bg), rgba(15, 17, 21, 0)) calc(50% - 1120px) 0 / 160px 4320px no-repeat,
    linear-gradient(270deg, var(--bg), rgba(15, 17, 21, 0)) calc(50% + 1120px) 0 / 160px 4320px no-repeat,
    url("/site/img/hero.jpg") top center / 2400px auto no-repeat,
    var(--bg);
  position: relative;
}
body::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  /* The top bar's wash and the fade at the end; the middle shows the terrain as it is. */
  background: linear-gradient(180deg, rgba(15, 17, 21, 0.72) 0%, rgba(15, 17, 21, 0) 10%, rgba(15, 17, 21, 0) 70%, rgba(15, 17, 21, 0.6) 90%, rgba(15, 17, 21, 0.75) 100%);
}
/* No z-index here: it would make each section a stacking context and trap its buttons under
   the tank layer. Positioned without one, the sections paint over the tunnels in order. */
body > * { position: relative; }
/* The digging tank: two canvases over the picture, under the wash (dig.js), clipped to the page. */
.dig-wrap { position: absolute; inset: 0; overflow: hidden; z-index: 0; pointer-events: none; }
.dig-wrap canvas { position: absolute; top: 0; left: 0; }
.dig-over { z-index: 2; } /* the tank over the page's text and cards */
.button { position: relative; z-index: 3; } /* buttons (and the top bar, z 3) over the tank */
a { color: #93c5fd; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 0.4em; }
/* Section headings in the wordmark's pixel face, with its stepped shadow. */
.pricing h2, .faq h2, .requirements h2, .community h2, .news h2 {
  font-family: "Pixelify Sans", monospace; font-weight: 700; font-size: 44px; letter-spacing: 0.01em;
  color: #f3e9d2; text-shadow: 2px 2px 0 #1b1e23, 4px 4px 0 #0d0f12;
}

.top {
  position: absolute; inset: 0 0 auto 0; z-index: 3;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px 24px;
}
.brand { flex: 1; }
.top { pointer-events: none; }
.top nav, .top .online { pointer-events: auto; }
.top nav { display: flex; align-items: center; gap: 22px; }
.top nav a { color: #e5e7eb; text-decoration: none; font-family: "Pixelify Sans", monospace; font-weight: 700; font-size: 20px; letter-spacing: 0.02em; text-shadow: 1px 1px 0 #1b1e23, 2px 2px 0 #0d0f12; }
.top nav a:hover { color: white; }

.button {
  display: inline-block; padding: 10px 18px; border-radius: 9px; font-weight: 600; text-decoration: none;
  color: white; background: var(--accent); border: 1px solid transparent;
}
.button:hover { background: var(--accent-hover); color: white; }
.button.small { padding: 7px 14px; }
.button.big { padding: 14px 26px; font-size: 18px; }
.button.play {
  display: inline-flex; align-items: center; gap: 12px; padding: 18px 38px; font-size: 21px; border-radius: 12px;
  background: linear-gradient(180deg, #3b82f6, #1d4ed8); border-color: #60a5fa;
  box-shadow: 0 10px 30px rgba(37, 99, 235, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.button.play svg { width: 22px; height: 22px; fill: currentColor; }
.button.play:hover { transform: translateY(-2px); box-shadow: 0 14px 36px rgba(37, 99, 235, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.25); background: linear-gradient(180deg, #60a5fa, #2563eb); }
.button.play:active { transform: translateY(0); }
.button.ghost { background: rgba(23, 27, 35, 0.75); border-color: #4b5563; }
.button.ghost:hover { background: #26303d; }

/* The hero fills the first screen exactly, so nothing of the page below peeks in; a hint at the
   bottom says there is more, and the rest fades in as the visitor scrolls to it (reveal.js). */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: flex-start; justify-content: center; }
.scroll-hint { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); transition: opacity 0.3s ease; }
.scroll-hint.gone { opacity: 0; pointer-events: none; }
.scroll-hint { color: #e5e7eb; opacity: 0.8; text-decoration: none; display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; text-shadow: 0 1px 6px rgba(0, 0, 0, 0.7); z-index: 3; }
.scroll-hint svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; animation: nudge 1.8s ease-in-out infinite; }
@keyframes nudge { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(6px); } }
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } .scroll-hint svg { animation: none; } }
/* The hero's text is drawn by dig.js on canvases (dim and bright) and mined away like ground;
   the page's own copy is invisible but keeps the layout, unselectable, and lets clicks through.
   Without JavaScript the text shows as it is. */
.hero .wordmark, .hero .lead, .hero .fine { user-select: none; -webkit-user-select: none; pointer-events: none; }
.dig-wrap ~ .hero .wordmark { opacity: 0; } /* only the name is mined; the rest stays plain text */
.hero-inner { user-select: none; -webkit-user-select: none; }
/* The name and the lead high on the screen, the button a good way below them. */
.hero-inner { position: relative; max-width: 960px; padding: clamp(72px, 11vh, 150px) 24px 96px; text-align: center; }
/* The name in a pixel face, with the hard stepped shadow of the game's own sprites. */
.wordmark {
  font-family: "Pixelify Sans", "Press Start 2P", monospace; font-weight: 700;
  font-size: clamp(44px, 8.2vw, 118px); line-height: 1; letter-spacing: 0.01em; margin: 0 0 26px; white-space: nowrap;
  color: #f3e9d2;
  text-shadow: 3px 3px 0 #1b1e23, 6px 6px 0 #0d0f12, 0 0 24px rgba(0, 0, 0, 0.5);
  image-rendering: pixelated;
}
.wordmark span { color: #ffb347; }
.lead { font-size: 19px; max-width: 620px; margin-left: auto; margin-right: auto; color: #e5e7eb; text-shadow: 0 1px 6px rgba(0, 0, 0, 0.7); }
.cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: clamp(44px, 9vh, 110px) 0 14px; }
.fine { color: var(--muted); font-size: 14px; }
/* The online badge: top left, a dark pill so it reads over any ground. */
.online { position: absolute; left: 24px; top: 14px; margin: 0; display: inline-flex; align-items: center; gap: 0; padding: 7px 12px; border-radius: 999px; background: rgba(23, 27, 35, 0.85); border: 1px solid #4b5563; color: #e5e7eb; font-size: 14px; font-weight: 600; z-index: 3; user-select: none; -webkit-user-select: none; }
.online[hidden] { display: none; }
.online .dot { width: 9px; height: 9px; margin-right: 8px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 8px #4ade80; animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.55; } }

.features {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px;
  max-width: 1100px; margin: -40px auto 0; padding: 0 24px 56px; position: relative;
}
.feature { background: rgba(23, 27, 35, 0.82); border: 1px solid var(--line); border-radius: 12px; padding: 20px 22px; backdrop-filter: blur(2px); }
.feature h2 { font-size: 22px; }
.feature p { margin: 0; color: #cbd5e1; }

/* ---- pricing ---- */
.pricing { max-width: 1000px; margin: 0 auto; padding: 72px 24px 72px; text-align: center; }
/* Lines on the bare terrain: white, a size up, a dark shadow to lift them off the ground. */
.pricing .sub, .pricing .fine, .community .sub { color: #ffffff; font-size: 18px; text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9), 0 0 14px rgba(0, 0, 0, 0.7); }
.pricing .sub { margin: 0 auto 24px; max-width: 620px; }
.pricing .fine { font-size: 16px; }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; text-align: left; }
.plan { background: rgba(23, 27, 35, 0.88); border: 1px solid var(--line); border-radius: 14px; padding: 22px 22px 24px; display: flex; flex-direction: column; }
.plan.featured { border-color: #3b82f6; box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.35); }
.plan h3 { font-size: 18px; color: var(--muted); margin: 0 0 6px; }
.price { font-size: 40px; font-weight: 700; margin: 0; line-height: 1.1; }
.hours { margin: 2px 0 12px; color: #93c5fd; font-weight: 600; }
.hours s { color: var(--muted); font-weight: 500; margin-right: 6px; }
.note { margin: 0 0 18px; color: #cbd5e1; font-size: 15px; flex: 1; }
.dead-button { opacity: 0.55; cursor: default; pointer-events: none; text-align: center; }
.pricing .fine { margin-top: 18px; }
.community .sub { margin: -8px 0 16px; }

/* ---- questions, runs on, community ---- */
.faq, .requirements, .community { max-width: 900px; margin: 0 auto; padding: 48px 24px 72px; }
.faq h2, .requirements h2, .community h2 { text-align: center; margin-bottom: 18px; }
.faq dl { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); gap: 14px; }
.faq dl > div { background: rgba(23, 27, 35, 0.88); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; }
.faq dt { font-weight: 700; font-size: 17px; margin-bottom: 6px; }
.faq dd { margin: 0; color: #cbd5e1; font-size: 15px; }
.req { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.req > div { background: rgba(23, 27, 35, 0.88); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; }
.req h3 { font-size: 17px; margin: 0 0 8px; color: #93c5fd; }
.req ul { margin: 0; padding-left: 18px; color: #cbd5e1; font-size: 15px; }
.req li { margin: 3px 0; }
.community { text-align: center; }
.community .links { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.community .links .button { display: inline-flex; align-items: center; gap: 10px; }
.community .links svg { width: 20px; height: 20px; fill: currentColor; }
.to-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 4; width: 46px; height: 46px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center; color: white; text-decoration: none;
  background: rgba(23, 27, 35, 0.85); border: 1px solid #4b5563; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  transition: background 0.12s ease, transform 0.12s ease;
}
.to-top[hidden] { display: none; }
.to-top:hover { background: #2563eb; border-color: #60a5fa; transform: translateY(-2px); }
.to-top svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
footer .foot { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; margin-bottom: 12px; }
footer .foot a { color: #cbd5e1; text-decoration: none; }
footer .foot a:hover { color: white; }
footer .foot.small { gap: 6px 16px; font-size: 13px; }
footer .foot.small a { color: #9ca3af; }

.news { max-width: 760px; margin: 0 auto; padding: 48px 24px 96px; text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6); }
.news h2 { margin-bottom: 18px; }
.news article { border-top: 1px solid var(--line); padding: 18px 0; }
.news time { color: var(--muted); font-size: 14px; }
.news h3 { font-size: 20px; margin-top: 4px; }
.news p { margin: 0; color: #cbd5e1; }

footer { border-top: 1px solid var(--line); padding: 20px 24px 36px; text-align: center; color: var(--muted); font-size: 14px; background: var(--bg); }
footer a { color: #9ca3af; }

@media (max-width: 640px) {
  .top { padding: 12px 16px; }
  .top nav { gap: 12px; font-size: 15px; }
  .hero-inner { padding: 72px 16px 72px; }
  .features, .news { padding-left: 16px; padding-right: 16px; }
  footer { padding-left: 16px; padding-right: 16px; }
}

@media (max-width: 760px) {
  .lead { font-size: 16px; }
  .wordmark { margin-bottom: 20px; }
  .hero-inner { padding-left: 20px; padding-right: 20px; }
  .faq dl { grid-template-columns: 1fr; }
    .pricing, .faq, .requirements, .community { padding-top: 40px; padding-bottom: 48px; }
}
