/* Ron Manager: the public website.
   The game's own look (blue panels, green buttons, yellow labels, bold capitals, the faint 'Ron Manager '93'
   banner), made readable: body text in a plain sans serif, headings and buttons in the game's capitals. */
:root {
  --blue: #2a4fb0; --blue-dark: #1c2f86; --blue-line: #5a7ae0; --blue-deep: #16246b;
  --green: #187a2f; --green-hi: #35d055; --green-dark: #0e4f1d; --green-hover: #1f9a3a;
  --yellow: #f8f050; --white: #ffffff; --soft: #dfe6ff; --ink: #101010; --bg: #2c2c48;
  --mono: "Consolas", "Lucida Console", "Courier New", monospace;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh;
  background: var(--bg);
  background-image: repeating-linear-gradient(0deg, rgba(255,255,255,.035) 0 2px, transparent 2px 4px);
  color: var(--white); font-family: var(--sans); font-size: 17px; line-height: 1.6;
}
img { max-width: 100%; height: auto; }
a { color: var(--yellow); text-underline-offset: 3px; }
a:hover { color: var(--white); }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }
.skip { position: absolute; left: -9999px; top: 0; }
.skip:focus { left: 8px; top: 8px; z-index: 10; background: var(--blue-dark); padding: 6px 10px; }

.wrap { max-width: 960px; margin: 0 auto; padding: 0 16px; }

/* the faint scrolling banner along the top, as on every screen of the game */
.banner { overflow: hidden; white-space: nowrap; font-family: var(--mono); font-weight: bold; text-transform: uppercase;
  font-size: 22px; color: rgba(255,255,255,.09); padding: 4px 0 2px; user-select: none; }
.banner span { display: inline-block; animation: roll 60s linear infinite; }
@keyframes roll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .banner span { animation: none; } }

/* title bar: the game's blue strip with the yellow name */
.titlebar { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap;
  background: var(--blue-dark); border: 2px solid var(--blue-line); box-shadow: 4px 4px 0 rgba(0,0,0,.45);
  padding: 6px 12px; font-family: var(--mono); font-weight: bold; text-transform: uppercase; }
.titlebar .name { color: var(--yellow); font-size: 22px; text-decoration: none; letter-spacing: .5px; }
.titlebar .where { color: var(--white); font-size: 15px; }

/* the nav: a row of green buttons (wraps into a grid on a phone) */
nav.top { margin: 10px 0 18px; }
nav.top ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
@media (min-width: 720px) { nav.top ul { grid-template-columns: repeat(6, 1fr); } }
nav.top a { display: block; height: 100%; }

/* buttons */
.btn { display: inline-block; background: var(--green); color: var(--white); text-decoration: none;
  border: 3px solid var(--green-hi); border-right-color: var(--green-dark); border-bottom-color: var(--green-dark);
  padding: 8px 12px; font-family: var(--mono); font-weight: bold; text-transform: uppercase; font-size: 15px;
  line-height: 1.25; text-align: center; text-shadow: 1px 1px 0 #000; cursor: pointer; }
.btn:hover { background: var(--green-hover); color: var(--white); }
.btn[aria-current="page"] { background: var(--blue); border-color: var(--blue-line) var(--blue-deep) var(--blue-deep) var(--blue-line); color: var(--yellow); }
.btn.big { font-size: 18px; padding: 14px 12px; }
button.btn { font-family: var(--mono); }
button.btn[disabled] { background: #6b6b6b; border-color: #a8a8a8 #444 #444 #a8a8a8; cursor: default; }

/* panels */
.panel { background: var(--blue); border: 2px solid var(--blue-line); box-shadow: 4px 4px 0 rgba(0,0,0,.45);
  padding: 14px 16px; margin: 0 0 18px; }
.panel.dark { background: var(--blue-dark); }
.panel > :first-child { margin-top: 0; }
.panel > :last-child { margin-bottom: 0; }
h1, h2, h3, .label { font-family: var(--mono); font-weight: bold; text-transform: uppercase; color: var(--yellow); letter-spacing: .3px; line-height: 1.25; }
h1 { font-size: 26px; margin: 0 0 12px; }
h2 { font-size: 20px; margin: 22px 0 8px; }
h3 { font-size: 17px; margin: 16px 0 6px; }
.label { font-size: 14px; display: block; margin-bottom: 4px; }
p { margin: 0 0 12px; }
ul.points { padding-left: 1.2em; margin: 0 0 12px; }
ul.points li { margin-bottom: 6px; }
.lede { font-size: 19px; color: var(--soft); }
.muted { color: var(--soft); font-size: 15px; }
.k { font-family: var(--mono); font-weight: bold; color: var(--yellow); font-size: .92em; letter-spacing: .2px; }

/* home: cover and the hook */
.hero { display: grid; gap: 18px; align-items: start; }
.hero > *, .doors > *, nav.top li { min-width: 0; }
.hero .cover { margin: 0 auto; max-width: 340px; width: 100%; border: 3px solid var(--blue-line); box-shadow: 6px 6px 0 rgba(0,0,0,.5);
  background: var(--blue-dark); }
.hero .cover img { display: block; width: 100%; image-rendering: pixelated; }
@media (min-width: 720px) { .hero { grid-template-columns: 340px 1fr; } }
.hero h1 { font-size: 34px; }
.hero h1 small { display: block; color: var(--white); font-size: 15px; letter-spacing: 1px; margin-top: 4px; }

/* the home grid of doors, like the game's main menu */
.doors { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0 0 18px; }
@media (min-width: 720px) { .doors { grid-template-columns: repeat(4, 1fr); } }
.doors .btn { display: flex; align-items: center; justify-content: center; min-height: 76px; font-size: 18px; box-shadow: 5px 5px 0 rgba(0,0,0,.55); }

/* news */
.news-item { border-top: 2px solid var(--blue-line); padding-top: 12px; margin-top: 12px; }
.news-item:first-of-type { border-top: 0; padding-top: 0; margin-top: 0; }
.news-item time { font-family: var(--mono); font-weight: bold; color: var(--white); background: var(--blue-dark);
  border: 1px solid var(--blue-line); padding: 1px 8px; font-size: 14px; text-transform: uppercase; }
.news-item h2, .news-item h3 { margin-top: 8px; }

/* the guide */
.toc ol { columns: 2 220px; margin: 0; padding-left: 1.4em; font-family: var(--mono); font-weight: bold; text-transform: uppercase; font-size: 15px; }
.toc li { margin-bottom: 4px; break-inside: avoid; }
.guide section { scroll-margin-top: 10px; }
.guide li { margin-bottom: 8px; }

/* the board */
.form label { display: block; font-family: var(--mono); font-weight: bold; text-transform: uppercase; color: var(--yellow); font-size: 14px; margin: 12px 0 4px; }
.form input[type=text], .form textarea { width: 100%; font: inherit; font-size: 17px; color: var(--ink); background: #fff;
  border: 3px solid var(--blue-line); padding: 8px 10px; }
.form textarea { min-height: 140px; resize: vertical; }
.form .tick { display: flex; gap: 10px; align-items: flex-start; margin: 12px 0; font-family: var(--sans); text-transform: none; color: var(--white); font-weight: normal; font-size: 16px; }
.form .tick input { width: 20px; height: 20px; margin-top: 3px; flex: none; }
.form .count { font-size: 14px; color: var(--soft); text-align: right; }
.form .status { margin-top: 10px; font-weight: bold; }
.msg { background: var(--blue-dark); border: 2px solid var(--blue-line); padding: 10px 12px; margin: 0 0 10px; }
.msg p { white-space: pre-line; overflow-wrap: anywhere; }
.msg .who { font-family: var(--mono); font-weight: bold; text-transform: uppercase; color: var(--yellow); font-size: 14px; }

footer { margin: 28px 0 0; padding: 14px 0 28px; border-top: 2px solid var(--blue-line); font-size: 14px; color: var(--soft); }
footer p { margin: 0 0 6px; }
footer .friends { margin-top: 10px; }

/* printing (and the guide's PDF): black on white, no banner, nav or buttons */
@media print {
  body { background: #fff; color: #000; font-size: 11pt; line-height: 1.45; }
  .banner, nav.top, .doors, .skip, .noprint, footer .friends { display: none !important; }
  .titlebar, .panel, .panel.dark, .msg { background: #fff; border: 0; box-shadow: none; padding: 0; color: #000; }
  .titlebar .name, .titlebar .where { color: #000; }
  h1, h2, h3, .label, .k { color: #000; }
  .panel { margin-bottom: 10pt; }
  h2 { border-bottom: 1.5pt solid #000; padding-bottom: 2pt; break-after: avoid; }
  li, p { break-inside: avoid; }
  a { color: #000; text-decoration: none; }
  footer { color: #000; border-top: 1pt solid #000; }
  .lede, .muted { color: #000; }
}
.gap-top { margin-top: 18px; }
.msg p:last-child { margin-bottom: 0; }
