* { box-sizing: border-box; }
body {
  font-family: 'Lucida Grande', 'Lucida Sans Unicode', Helvetica, Verdana, Arial, Tahoma, sans-serif;
  font-size: 12px;
  color: #39444d;
  background: #527b0d;
  margin: 0 0 15px;
}
a { color: #500800; text-decoration: none; }
a:hover { text-decoration: underline; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #87501e; outline-offset: 3px; }
#body2 { width: 100%; }
#wrapper { width: 972px; max-width: 100%; margin: 0 auto; }
#header { height: 91px; position: relative; background: url('/sites/railwayvalley.com/themes/railwayvalley/images/frame_top.gif') no-repeat 0 66px; }
#logo { position: absolute; left: 45px; top: 15px; z-index: 1; }
#logo img { display: block; width: 400px; height: 100px; }
nav { position: absolute; right: 35px; top: 41px; display: flex; gap: 10px; }
nav a {
  display: block; height: 30px; padding-left: 10px;
  background: url('/sites/railwayvalley.com/themes/railwayvalley/images/nav_tab_left.gif') no-repeat left bottom;
  color: #deff61; font: 13px/30px Helvetica, Arial, sans-serif; text-align: center;
}
nav a span { display: block; padding: 0 20px 0 12px; background: url('/sites/railwayvalley.com/themes/railwayvalley/images/nav_tab_right.gif') no-repeat right bottom; }
nav a.active { background-image: url('/sites/railwayvalley.com/themes/railwayvalley/images/nav_cur_left.gif'); color: #fff; font-weight: bold; }
nav a.active span { background-image: url('/sites/railwayvalley.com/themes/railwayvalley/images/nav_cur_right.gif'); }
#page2 { background: url('/sites/railwayvalley.com/themes/railwayvalley/images/frame_body.gif') repeat-y; }
#page3 { background: url('/sites/railwayvalley.com/themes/railwayvalley/images/frame_grass.gif') no-repeat bottom center; padding-bottom: 140px; }
#main2 { padding: 30px 60px 0; min-height: 200px; }
h1, h2 { font-family: Helvetica, Arial, sans-serif; }
h1 { font-size: 18px; color: #3b4a25; margin: 0 0 20px; padding-bottom: 14px; border-bottom: 1px solid #c4c5b6; }
h2 { font-size: 14px; margin: 16px 0 12px; color: #39444d; }
p { margin: 0 0 1.5em; line-height: 1.6; }
.banners { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; margin-bottom: 18px; }
.banners a { display: block; }
.banners .wide { grid-column: 1 / -1; }
.banners img { display: block; width: 100%; height: auto; }
.grid { display: grid; grid-template-columns: repeat(8, 100px); gap: 4px 2px; list-style: none; padding: 0; margin: 0; }
@media (min-width: 973px) {
  .banners + .grid, .intro ~ .grid { grid-template-columns: repeat(9, minmax(0, 1fr)); }
}
.card { min-width: 0; }
.card a { display: block; }
.card img { display: block; width: 100px; max-width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border: 2px solid #785239; border-radius: 4px; }
.card-label { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; line-height: 16px; font-size: 11px; }
.missing { display: block; font-size: 10px; color: #666; }
.collection { margin-top: 16px; }
.collection p { margin-top: 1em; }
#footer2 { height: 41px; background: url('/sites/railwayvalley.com/themes/railwayvalley/images/frame_copyright.gif') no-repeat; text-align: center; line-height: 32px; color: white; }
#footer2 a { color: white; }
.terms { text-align: center; font-size: 11px; padding-top: 6px; }
.intro { position: relative; }
.search { position: absolute; right: 0; top: -6px; display: flex; gap: 8px; align-items: center; }
.search input { padding: 5px 7px; border: 1px solid #aaa; border-radius: 2px; font: inherit; width: 180px; max-width: 65%; }
.count { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.stage { width: min(100%, var(--game-width)); aspect-ratio: var(--ratio); position: relative; margin: 0 auto 12px; background: #101414; min-height: 8rem; }
.launch, .screen { position: absolute; inset: 0; }
.launch { display: grid; place-items: center; isolation: isolate; }
.poster { z-index: -1; position: absolute; width: 100%; height: 100%; object-fit: cover; opacity: .5; }
.play { border: 2px solid #6b341b; border-radius: 3px; background: #aa5929; color: #fff7bd; padding: 10px 24px; font: bold 15px Helvetica, Arial, sans-serif; cursor: pointer; }
.screen ruffle-player { display: block; width: 100%; height: 100%; }
.player-message { text-align: center; }
.game-divider { display: block; max-width: 100%; height: auto; margin: 18px auto; }
.description, .page-content { line-height: 1.6; white-space: pre-line; }
.page-content { margin: 8px 0 28px; }
.page-content img { max-width: 100%; height: auto; }
.game + .collection { margin-top: 50px; }
.unavailable { padding: 15px; background: #faf5e8; border: 1px solid #a88657; }

@media (max-width: 972px) {
  #page2 { background: #fff; border-inline: 3px solid #a0774a; }
  #header { background-position: center 66px; }
  #main2 { padding-inline: clamp(12px, 5vw, 60px); }
  #logo { left: 4%; }
  nav { right: 4%; gap: 5px; }
  nav a span { padding-inline: 5px; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(85px, 1fr)); }
}
@media (max-width: 740px) {
  #header { height: 150px; background-position: center 125px; }
  #logo { left: 50%; transform: translateX(-50%); }
  #logo img { width: min(400px, 90vw); height: auto; }
  nav { top: 120px; left: 0; right: 0; justify-content: center; gap: 5px; }
  #main2 { padding-top: 22px; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(85px, 1fr)); }
  #footer2 { background-size: 100% 41px; }
}
@media (max-width: 480px) {
  .intro { padding-bottom: 34px; }
  .search { left: 0; top: 39px; }
}
