/* ScreenshotWalkthroughs.com — 2026 refresh of the 2008 "autumn" theme */
:root {
  --bg: #0b0806;
  --panel: #150C09;
  --panel-hover: #21140d;
  --line: #3e310f;
  --line-strong: #5a4416;
  --accent: #FF8A00;
  --link: #FFB547;
  --link-hover: #FFE2B0;
  --head: #FFF3DE;
  --text: #E9DCC6;
  --soft: #D9CBB2;
  --muted: #B8A88E;
}
* { box-sizing: border-box; }
html { margin: 0; padding: 0; scroll-padding-top: 80px; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg) url(/images/autumn/bg.gif) repeat;
  min-height: 100vh; display: flex; flex-direction: column;
}
body > * { width: 100%; flex-shrink: 0; }
a, a:link, a:visited { color: var(--link); text-decoration: none; }
a:hover { color: var(--link-hover); text-decoration: underline; }
img { max-width: 100%; height: auto; }
h1, h2, h3, h5, h6 {
  font-family: Questrial, sans-serif;
  font-weight: 400;
  color: var(--head);
  line-height: 1.2;
  background: none;
  padding: 0;
  text-align: left;
}
h1 { font-size: 34px; margin: 0 0 18px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
h2 { font-size: 28px; margin: 0 0 16px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
h3, h6 { font-size: 22px; margin: 0 0 12px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
h5 { font-size: 18px; margin: 0 0 12px; }
p { margin: 0 0 16px; }
font.neutral { color: var(--muted); }

/* ---- header ---- */
#navigation_1 {
  position: sticky; top: 0; z-index: 50;
  background: rgba(15, 9, 6, 0.94);
  border-bottom: 1px solid var(--line);
}
#navigation_1 .bar {
  max-width: 1120px; margin: 0 auto; padding: 14px 24px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px;
}
.logo, .logo:link, .logo:visited {
  font-family: Questrial, sans-serif; font-size: 24px; letter-spacing: 0.2px;
  background: linear-gradient(90deg, #FF8500 0%, #FFBE00 45%, #FFE181 75%, #FFFFFF 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.logo:hover { text-decoration: none; }
.logo span { color: #fff; -webkit-text-fill-color: #fff; }
#navigation_1 nav { display: flex; flex-wrap: wrap; gap: 4px 20px; font-size: 15px; font-weight: 500; }

/* ---- layout ---- */
#page_wrapper { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
#content, #content_wide { padding: 36px 0 24px; text-align: left; }
#content_wide p, #welcome p, #game_review p { max-width: 72ch; }
#pageheader, #aerial, #adbottom, #purchase, #microbar, #leaderboard, #donate, #gamertag { display: none; }

/* ---- lists of walkthroughs / levels ---- */
#walkthrough_list ul, #screensaver_list ul, #article_list ul {
  list-style: none; margin: 0 0 32px; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px;
}
#walkthrough_list li a, #screensaver_list li a, #article_list li a {
  display: flex; align-items: center; gap: 12px; min-height: 52px; height: 100%;
  padding: 8px 16px; border: 1px solid var(--line); border-radius: 6px;
  background: var(--panel); color: #FFD9A0; font-weight: 500; line-height: 1.3;
}
#walkthrough_list li a::before, #screensaver_list li a::before, #article_list li a::before {
  content: ""; flex: none; width: 14px; height: 10px;
  background: url(/images/autumn/invaders1.gif) center / contain no-repeat; image-rendering: pixelated;
}
#walkthrough_list li a:hover, #screensaver_list li a:hover, #article_list li a:hover {
  border-color: #8a5a12; background: var(--panel-hover); text-decoration: none; color: var(--link-hover);
}

#walkthrough_list li a, #screensaver_list li a, #article_list li a { font-family: Inter, system-ui, sans-serif; font-size: 17px; }
/* grouped walkthrough lists (nested lists): a clean indented outline, like the original */
#walkthrough_list > :is(ul, ol):has(ul, ol) {
  background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 18px 24px 20px !important;
}
#walkthrough_list :is(ul, ol):has(ul, ol) {
  display: block; list-style: none; padding: 0; margin: 0 0 32px;
  font-family: Inter, system-ui, sans-serif; font-size: 17px; line-height: 1.5;
}
#walkthrough_list :is(ul, ol):has(ul, ol) :is(ul, ol) {
  display: block; list-style: none; padding: 0 0 0 28px; margin: 2px 0 6px; min-height: 0;
  font-size: 17px; color: var(--text);
}
#walkthrough_list :is(ul, ol):has(ul, ol) li {
  display: block; margin: 0; padding: 3px 0; min-height: 0; border: 0;
  font-family: Questrial, sans-serif; font-size: 19px; color: var(--head);
}
#walkthrough_list :is(ul, ol):has(ul, ol) li:has(> a), #walkthrough_list :is(ul, ol):has(ul, ol) li:has(> font) {
  font-family: Inter, system-ui, sans-serif; font-size: 17px;
}
#walkthrough_list :is(ul, ol):has(ul, ol) li > a {
  display: inline-flex; align-items: center; gap: 10px; min-height: 0; height: auto; width: auto;
  padding: 0; border: 0; background: none; font-size: 17px; font-weight: 500;
}
#walkthrough_list :is(ul, ol):has(ul, ol) li > a:hover { background: none; text-decoration: underline; }
#walkthrough_list :is(ul, ol):has(ul, ol) ul:not(:has(a)) li { display: inline; padding: 0 14px 0 0; color: var(--muted); font-size: 15px; }
#walkthrough_list :is(ul, ol):has(ul, ol) font.neutral { color: var(--muted); padding-left: 24px; }
#walkthrough_list ul:not(:has(a)) {
  display: flex; flex-wrap: wrap; align-items: center; gap: 2px 14px; list-style: none; padding: 0 0 0 4px; margin: 0; min-height: 52px;
  color: var(--muted); font-size: 15px; font-family: Inter, system-ui, sans-serif;
}
#walkthrough_list ul:not(:has(a)) > li { margin: 0; font-size: 15px; font-family: inherit; color: var(--muted); }

#walkthrough_list ol:not(:has(ul, ol)) {
  list-style: none; padding: 0; margin: 0 0 32px; counter-reset: ch;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px;
}
#walkthrough_list ol:not(:has(ul, ol)) > li { counter-increment: ch; }
#walkthrough_list ol:not(:has(ul, ol)) > li > a::before {
  content: counter(ch); background: none; width: auto; height: auto; min-width: 22px;
  color: var(--accent); font-weight: 600;
}

/* ---- cards ---- */
#news, #acknowledgments, #special_note, #also_available, #more, #other_list, #other_list2, #schedule_list, #search_wrapper, #appendix {
  border: 1px solid var(--line); border-radius: 8px; background: var(--panel);
  padding: 22px 26px; margin: 0 0 28px;
}
#acknowledgments { font-size: 15px; color: var(--soft); }
#acknowledgments ul, #news ul { margin: 0; padding-left: 20px; }
#acknowledgments li, #news li { margin-bottom: 6px; }
#game_review { margin: 8px 0 28px; }
.gamebanner { display: block; width: 100%; aspect-ratio: 400 / 123; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); margin: 0 0 22px; }
#game_review #stars { color: var(--accent); font-size: 22px; margin-left: 10px; letter-spacing: 2px; }
#review_image { margin: 24px 0; max-width: 520px; }
#review_image img { border-radius: 8px; border: 1px solid var(--line); display: block; }
#review_image p { font-size: 14px; color: var(--muted); margin-top: 8px; }
#last_update { font-size: 14px; color: var(--muted); }

/* ---- front page ---- */
.frontpage #content { display: flex; flex-direction: column; }
.frontpage #welcome { order: 1; }
.frontpage #hero { order: 2; }
.frontpage #walkthrough_list { order: 3; }
.frontpage #news { order: 4; }
.frontpage #sitehero {
  display: flex; flex-wrap: wrap; gap: 40px; align-items: center; padding: 48px 0 24px;
}
.frontpage #sitehero .intro { flex: 1 1 420px; min-width: 0; }
.frontpage #sitehero .intro h1 { font-size: 46px; border: 0; padding: 0; margin: 0 0 20px; }
.frontpage #sitehero .intro p { font-size: 17px; color: var(--soft); }
.frontpage #sitehero .collage {
  flex: 1 1 420px; min-width: 0;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px;
}
.frontpage #sitehero .collage img { width: 100%; display: block; border-radius: 8px; border: 1px solid var(--line); object-fit: cover; aspect-ratio: 4 / 3; }
.frontpage #sitehero .collage img.wide { grid-column: span 2; aspect-ratio: 400 / 123; }
.frontpage #welcome { display: none; }

/* ---- level pages ---- */
body#walkthrough_level h4 {
  font-family: Questrial, sans-serif; font-weight: 400; font-size: 40px; line-height: 1.15;
  color: var(--head); text-align: left; background: none; border: 0;
  max-width: 912px; margin: 10px auto 6px; padding: 0;
}
.crumbs { max-width: 912px; margin: 32px auto 0; font-size: 14px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 8px; }
.crumbs .here { color: var(--text); }
.levelnav {
  max-width: 912px; margin: 18px auto 0; padding-bottom: 24px; border-bottom: 1px solid var(--line);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px;
}
.levelnav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px;
  border: 1px solid var(--line); border-radius: 6px; background: var(--panel); font-size: 15px;
}
.levelnav a:hover { border-color: #8a5a12; background: var(--panel-hover); text-decoration: none; }
p.screenshot {
  max-width: 912px; margin: 0 auto 40px; padding: 0 20px 18px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 8px; overflow: hidden;
  color: var(--text); font-size: 17px; line-height: 1.6;
}
p.screenshot img {
  display: block; width: calc(100% + 40px); max-width: none; height: auto;
  margin: 0 -20px 16px; border: 0; border-bottom: 1px solid var(--line);
}
p.screenshot .step {
  float: left; display: inline-flex; align-items: center; justify-content: center;
  min-width: 36px; height: 36px; padding: 0 8px; margin: 0 14px 4px 0; border-radius: 18px;
  background: var(--accent); color: #1a0f05; font-weight: 600; font-size: 16px; line-height: 1;
}
p.box_caption { font-size: 15px; margin: 0 20px; }
p.right_caption { font-size: 13px; color: var(--link); margin: 0 0 0 5px; }

#navigation_2 {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 50;
  background: rgba(15, 9, 6, 0.96); border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: center; gap: 8px;
  padding: 8px max(24px, calc((100% - 912px) / 2)); font-size: 15px; color: var(--muted);
}
#navigation_2 > div { flex: 1 1 0; width: auto; float: none; margin: 0; padding: 0; min-height: 44px; display: flex; align-items: center; gap: 6px; }
#navigation_2_back { order: 1; justify-content: flex-start; }
#navigation_2_main { order: 2; justify-content: center; text-align: center; }
#navigation_2_next { order: 3; justify-content: flex-end; text-align: right; }
#navigation_2 .dup { visibility: hidden; }
#navigation_2 a { display: inline-flex; align-items: center; min-height: 44px; }
#navigation_2 .short { display: none; }

/* ---- footer ---- */
#footer { display: none; }
#sitefooter { border-top: 1px solid var(--line); background: #0f0906; margin-top: auto; }
#page_wrapper { padding-bottom: 40px; }
body#walkthrough_level #sitefooter { padding-bottom: 64px; }
#sitefooter .bar {
  max-width: 1120px; margin: 0 auto; padding: 24px;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 14px; color: var(--muted);
}
#sitefooter nav { display: flex; flex-wrap: wrap; gap: 4px 18px; }

/* ---- small screens ---- */
@media (max-width: 700px) {
  body { font-size: 16px; }
  #navigation_1 { position: static; }
  #navigation_1 .bar { padding: 12px 16px; }
  #navigation_1 nav { gap: 2px 16px; }
  #page_wrapper { padding: 0 16px; }
  .crumbs, .levelnav, body#walkthrough_level h4 { margin-left: 16px; margin-right: 16px; }
  body#walkthrough_level h4 { font-size: 30px; }
  p.screenshot { margin: 0 0 24px; border-radius: 0; border-left: 0; border-right: 0; }
  .frontpage #sitehero .intro h1 { font-size: 34px; }
  #navigation_2 { padding: 4px 16px; font-size: 16px; font-weight: 500; }
  #navigation_2 .label, #navigation_2 .name { display: none; }
  #navigation_2 .short { display: inline; }
}

/* ---- walkthrough index pages: levels on the left, review on the right ---- */
@media (min-width: 900px) {
  body#walkthrough_index #content:has(#game_review) {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    column-gap: 48px; align-items: start; grid-auto-flow: row dense;
  }
  body#walkthrough_index #content:has(#game_review) > * { grid-column: 1; }
  body#walkthrough_index #content:has(#game_review) > #game_review { grid-column: 2; grid-row: 1 / span 30; margin-top: 0; }
  body#walkthrough_index #content:has(#game_review) #walkthrough_list ul:not(:has(ul, ol)),
  body#walkthrough_index #content:has(#game_review) #walkthrough_list ol:not(:has(ul, ol)) { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
  body#walkthrough_index #content:has(#game_review) #walkthrough_list :is(ul, ol):not(:has(ul, ol)) > li > a { font-size: 16px; padding: 8px 12px; gap: 10px; }
  body#walkthrough_index #content:has(#game_review) #walkthrough_list :is(ul, ol):has(ul, ol) :is(ul, ol):not(:has(ul, ol)) > li > a { padding: 0; }
}

/* ---- articles: main story left, sidebar (#more, pictures) right, as in the original ---- */
[id^="cube300x250"] { margin: 0 0 24px; }
[id^="cube300x250"] img { display: block; border-radius: 8px; border: 1px solid var(--line); }
[id^="cube300x250"] p { font-size: 14px; color: var(--muted); margin-top: 8px; }
body#home #content:has(> #more) { display: flex; flex-direction: column; max-width: 760px; margin: 0 auto; }
body#home #content:has(> #more) > #welcome { order: -1; }
body#home #content:has(> #more) > #more { background: none; border: 0; border-radius: 0; padding: 0; margin: 8px 0 0; }
body#home #content:has(> #more) #welcome p, body#home #content:has(> #more) #more p { max-width: none; }
body#home #content:has(> #more) > [id^="cube300x250"] { align-self: center; margin: 8px 0 28px; }


/* ---- embedded videos ---- */
#video { margin: 8px 0 24px; font-size: 14px; color: var(--muted); text-align: left; width: auto; }
.videoframe { position: relative; width: 100%; aspect-ratio: 16 / 9; margin: 0 0 8px; border-radius: 8px; overflow: hidden; border: 1px solid var(--line); background: #000; }
.videoframe iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---- small picture tables in articles ---- */
#content table { border-collapse: separate; border-spacing: 12px; margin: 20px auto; }
#content table td { vertical-align: middle; font-size: 14px; line-height: 1.5; color: var(--muted); }
#content table img { display: block; max-width: 100%; height: auto; border-radius: 6px; border: 1px solid var(--line); }
#content table a img { width: 150px; min-width: 150px; max-width: none; aspect-ratio: 150 / 113; object-fit: cover; }
#content table a:hover img { border-color: #8a5a12; }

/* ---- level page header pictures (the game's own screenshots, as in the original header) ---- */
.levelbanner {
  max-width: 912px; margin: 28px auto 0; display: grid; grid-template-columns: 400fr 367fr; gap: 10px;
}
.levelbanner img {
  display: block; width: 100%; height: 130px; object-fit: cover;
  border-radius: 8px; border: 1px solid var(--line);
}
.levelbanner + .crumbs { margin-top: 20px; }
@media (max-width: 700px) {
  .levelbanner { margin: 16px 16px 0; grid-template-columns: 1fr; }
  .levelbanner img { height: 90px; }
  .levelbanner img + script + img { display: none; }
}

#news p { max-width: 72ch; }
#news .signoff { font-style: italic; color: var(--muted); margin-bottom: 0; }
#content > #content_wide { padding-top: 0; }
