/* Landing page: the two games' title bands, each in its game's colours, on a dark page. */

* { box-sizing: border-box; }

html { background: #1b1410; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  color: #efe6dc;
  font: 15px/1.5 Arial, "Liberation Sans", Helvetica, sans-serif;
  background: radial-gradient(ellipse at top, #3a2414, #1b1410 70%);
}

.page {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: 32px 16px;
}

header { text-align: center; margin-bottom: 28px; }

h1 {
  margin: 0;
  font: bold 34px/1.15 "Commerce SF", Rockwell, "Rockwell Nova", "American Typewriter", serif;
  letter-spacing: 1px;
  color: #ffd28a;
  text-shadow: 0 3px 0 #6b2a05;
}

header p { margin: 6px 0 0; color: #cdb9a3; }

.games {
  display: grid;
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.game {
  display: block;
  padding: 12px 12px 14px;
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
  box-shadow: 0 6px 20px rgb(0 0 0 / 50%);
}

.game:hover, .game:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgb(0 0 0 / 60%);
  outline: none;
}

.game:focus-visible { outline: 3px solid #ffd28a; outline-offset: 3px; }

.logo {
  display: block;
  border-radius: 8px;
  background-repeat: no-repeat;
}

.name {
  display: block;
  margin-top: 10px;
  font: bold 20px/1.2 "Commerce SF", Rockwell, "Rockwell Nova", "American Typewriter", serif;
}

.about { display: block; margin-top: 2px; font-size: 14px; }

/* MLU 1: orange Mars, the #AA1111 frame of the applet page. */
.mlu1 {
  background: linear-gradient(#f4a33c, #d9761c);
  border: 3px solid #aa1111;
  color: #3a1500;
}

.mlu1 .logo {
  aspect-ratio: 800 / 78;
  background-image: url("mlu1/images/startpage.jpg");
  background-size: 100% auto;
  background-position: 0 1.92%;
  border: 2px solid #aa1111;
}

.mlu1 .name { color: #8a0a0a; }

/* MLU 2: blue-grey metal of the Crematoria start page. */
.mlu2 {
  background: linear-gradient(#4a525e, #2c3139);
  border: 2px solid #9aa6b8;
  color: #e9edf3;
}

.mlu2 .logo {
  aspect-ratio: 700 / 77;
  background-image: url("mlu2/images/startpage2.jpg");
  background-size: 114.2857% auto;
  background-position: 60% 2.87%;
  border: 1px solid #c9d2df;
}

.mlu2 .name { color: #c9d2df; }

.mlu2 .about { color: #b4bdca; }

footer {
  margin-top: 24px;
  text-align: center;
  font-size: 13px;
  color: #a8957f;
}

footer p { margin: 0; }

footer .links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 16px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

footer .links a {
  color: #ffd28a;
  font-weight: bold;
  text-decoration: none;
}

footer .links a:hover, footer .links a:focus-visible { text-decoration: underline; }

/* The Install button, shown only while the browser offers to install the site. */
.install {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-top: 24px;
  text-align: center;
}

.install[hidden], .install-hint[hidden] { display: none; }

.install button {
  padding: 9px 20px;
  border: 2px solid #ffd28a;
  border-radius: 999px;
  background: #6b2a05;
  color: #ffe9c4;
  font: bold 15px/1.2 Arial, "Liberation Sans", Helvetica, sans-serif;
  cursor: pointer;
  box-shadow: 0 4px 14px rgb(0 0 0 / 45%);
}

.install button:hover, .install button:focus-visible { background: #8a3a0c; outline: none; }

.install button:focus-visible { outline: 3px solid #ffd28a; outline-offset: 3px; }

.install p, .install-hint { margin: 0; font-size: 13px; color: #cdb9a3; }

.install-hint { margin-top: 24px; text-align: center; }
