/* ------------------------------------------------------------------
   slowxroads.com - site shell
   Game occupies the first viewport; written content scrolls beneath it.
   Loaded AFTER the game's own stylesheet so these rules win.
   ------------------------------------------------------------------ */

:root {
  --bg: #1a1a1a;
  --bg-alt: #222;
  --panel: #262626;
  --line: #343434;
  --text: #d8d8d8;
  --text-dim: #9a9a9a;
  --heading: #f2f2f2;
  --accent: #7fb2a6;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

/* The game sets `overflow:hidden` on body to lock the page. We need the
   page to scroll so the content below the game is reachable. */
body {
  overflow-x: hidden !important;
  overflow-y: auto !important;
  background: var(--bg);
  color: var(--text);
}

/* Game viewport: exactly one screen tall, everything inside clipped. */
#root {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  background: var(--bg-alt);
}

#root > .App {
  position: relative;
  width: 100%;
  height: 100%;
}

/* Remove the original author's about panel, donation bar and its nav link.
   Their text is already stripped from the bundle; this hides the shells. */
#about,
#splash-about,
#splash-footer,
#splash-changelog,
#splash-anslo {
  display: none !important;
}

/* ---------------------------------- scroll cue */

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-family: Jura, sans-serif;
  font-size: 12px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  pointer-events: auto;
  animation: cue 2.4s ease-in-out infinite;
}

.scroll-cue:hover {
  color: #fff;
}

@keyframes cue {
  0%, 100% { transform: translate(-50%, 0); }
  50%      { transform: translate(-50%, 6px); }
}

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

/* ---------------------------------- content */

#site-content {
  position: relative;
  z-index: 5;
  background: var(--bg);
  border-top: 1px solid var(--line);
  font-family: Jura, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.7;
}

.wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px;
}

#site-content section {
  padding: 56px 0;
  border-bottom: 1px solid var(--line);
}

#site-content section:last-of-type {
  border-bottom: 0;
}

#site-content h1,
#site-content h2,
#site-content h3 {
  font-family: ShareTech, monospace;
  color: var(--heading);
  line-height: 1.25;
  margin: 0 0 18px;
  letter-spacing: 0.02em;
}

#site-content h1 { font-size: 2.1rem; }
#site-content h2 { font-size: 1.5rem; margin-top: 8px; }
#site-content h3 { font-size: 1.12rem; margin-top: 28px; color: var(--accent); }

#site-content p { margin: 0 0 16px; }

#site-content a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

#site-content a:hover { color: #fff; }

#site-content ul,
#site-content ol {
  margin: 0 0 16px;
  padding-left: 22px;
}

#site-content li { margin-bottom: 8px; }

.lede {
  font-size: 1.12rem;
  color: #e6e6e6;
}

/* key-value table used for controls and settings */
.spec {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 20px;
  font-size: 0.95rem;
}

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

.spec th {
  width: 34%;
  font-family: ShareTech, monospace;
  font-weight: 400;
  color: var(--heading);
  white-space: nowrap;
}

kbd {
  font-family: ShareTech, monospace;
  font-size: 0.85em;
  background: var(--panel);
  border: 1px solid var(--line);
  border-bottom-width: 2px;
  border-radius: 4px;
  padding: 2px 7px;
  color: #fff;
  white-space: nowrap;
}

/* FAQ */

.faq details {
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
}

.faq summary {
  cursor: pointer;
  font-family: ShareTech, monospace;
  color: var(--heading);
  font-size: 1.02rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "+";
  color: var(--accent);
  flex: none;
}

.faq details[open] summary::after { content: "\2212"; }

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

/* notices */

.notice {
  background: var(--panel);
  border-left: 3px solid var(--accent);
  padding: 14px 18px;
  margin: 0 0 20px;
  color: var(--text-dim);
  font-size: 0.95rem;
}

.notice strong { color: var(--heading); }

/* footer */

#site-footer {
  background: #141414;
  border-top: 1px solid var(--line);
  padding: 32px 0;
  font-family: Jura, sans-serif;
  font-size: 0.85rem;
  color: var(--text-dim);
  text-align: center;
}

#site-footer a { color: var(--text-dim); text-decoration: underline; }
#site-footer a:hover { color: #fff; }
#site-footer p { margin: 0 0 8px; }

/* ---------------------------------- small screens
   The game needs a hardware keyboard, so phones get a shorter game pane
   and reach the written content sooner. */

@media (max-width: 860px) {
  #root { height: 62vh; height: 62dvh; }
  #site-content { font-size: 16px; }
  #site-content section { padding: 40px 0; }
  #site-content h1 { font-size: 1.7rem; }
  #site-content h2 { font-size: 1.3rem; }
  .spec th, .spec td { display: block; width: auto; }
  .spec th { border-bottom: 0; padding-bottom: 0; }
}

/* ==================================================================
   Shared chrome for the standalone pages (blog, about, contact,
   privacy). These pages do NOT load the game bundle or its CSS, so
   the two fonts are re-declared here with root-absolute paths that
   resolve from any URL depth.
   ================================================================== */

@font-face {
  font-family: Jura;
  src: url(/static/media/Jura.8b933881.ttf) format("truetype");
  font-display: swap;
}

@font-face {
  font-family: ShareTech;
  src: url(/static/media/ShareTech.8b302ac6.ttf) format("truetype");
  font-display: swap;
}

/* pages without the game need normal document flow */
body.page {
  overflow: visible !important;
  font-family: Jura, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.7;
  margin: 0;
}

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

.site-head {
  border-bottom: 1px solid var(--line);
  background: #141414;
}

.site-head .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding-top: 16px;
  padding-bottom: 16px;
}

.brand {
  font-family: ShareTech, monospace;
  font-size: 1.15rem;
  letter-spacing: 0.18em;
  color: var(--heading);
  text-decoration: none;
  white-space: nowrap;
}

.brand:hover { color: #fff; }

.site-nav {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  font-size: 0.92rem;
}

.site-nav a {
  color: var(--text-dim);
  text-decoration: none;
  letter-spacing: 0.04em;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: #fff;
}

/* ---------------------------------- page body */

.page-main {
  padding: 48px 0 8px;
}

.page-main h1 {
  font-family: ShareTech, monospace;
  color: var(--heading);
  font-size: 2rem;
  line-height: 1.25;
  margin: 0 0 14px;
}

.page-main h2 {
  font-family: ShareTech, monospace;
  color: var(--heading);
  font-size: 1.4rem;
  margin: 36px 0 14px;
}

.page-main h3 {
  font-family: ShareTech, monospace;
  color: var(--accent);
  font-size: 1.1rem;
  margin: 26px 0 10px;
}

.page-main p { margin: 0 0 16px; }
.page-main ul, .page-main ol { margin: 0 0 16px; padding-left: 22px; }
.page-main li { margin-bottom: 8px; }

.page-main a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.page-main a:hover { color: #fff; }

.meta {
  color: var(--text-dim);
  font-size: 0.86rem;
  letter-spacing: 0.04em;
  margin: 0 0 28px;
}

/* ---------------------------------- blog index */

.post-list { list-style: none; padding: 0; margin: 0; }

.post-list li {
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
  margin: 0;
}

.post-list h2 {
  font-size: 1.22rem;
  margin: 0 0 6px;
}

.post-list h2 a { text-decoration: none; color: var(--heading); }
.post-list h2 a:hover { color: var(--accent); }
.post-list p { margin: 0; color: var(--text-dim); font-size: 0.96rem; }

/* ---------------------------------- play callout */

.play-cta {
  display: block;
  background: var(--panel);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  padding: 18px 20px;
  margin: 30px 0;
  text-decoration: none !important;
  color: var(--text) !important;
}

.play-cta:hover { border-left-color: #fff; }

.play-cta strong {
  display: block;
  font-family: ShareTech, monospace;
  color: var(--heading);
  margin-bottom: 4px;
}

.play-cta span { font-size: 0.93rem; color: var(--text-dim); }

/* ---------------------------------- footer nav */

.footer-nav {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin: 0 0 18px;
  font-size: 0.9rem;
}

.footer-nav a { color: var(--text-dim); text-decoration: none; }
.footer-nav a:hover { color: #fff; text-decoration: underline; }

@media (max-width: 860px) {
  .site-head .wrap { justify-content: center; }
  .site-nav { justify-content: center; gap: 16px; font-size: 0.88rem; }
  .page-main h1 { font-size: 1.6rem; }
}

/* ---------------------------------- figures / screenshots */

#site-content figure,
.page-main figure {
  margin: 30px 0;
}

#site-content figure picture,
.page-main figure picture {
  display: block;
}

#site-content figure img,
.page-main figure img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--panel);
}

#site-content figcaption,
.page-main figcaption {
  margin-top: 10px;
  font-size: 0.86rem;
  line-height: 1.55;
  color: var(--text-dim);
  font-style: italic;
}

code {
  font-family: ShareTech, monospace;
  font-size: 0.9em;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 1px 6px;
  color: #e8e8e8;
  word-break: break-word;
}

.page-main .spec { width: 100%; border-collapse: collapse; margin: 0 0 22px; font-size: 0.95rem; }
.page-main .spec th, .page-main .spec td {
  text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top;
}
.page-main .spec th {
  width: 34%; font-family: ShareTech, monospace; font-weight: 400;
  color: var(--heading); white-space: nowrap;
}
.page-main .notice {
  background: var(--panel); border-left: 3px solid var(--accent);
  padding: 14px 18px; margin: 0 0 20px; color: var(--text-dim); font-size: 0.95rem;
}
.page-main .notice strong { color: var(--heading); }

@media (max-width: 860px) {
  .page-main .spec th, .page-main .spec td { display: block; width: auto; }
  .page-main .spec th { border-bottom: 0; padding-bottom: 0; }
}
