:root {
  font-family: Verdana, Arial, Helvetica, sans-serif;
  font-size: 11pt;
  color: #000;
  background: #fff;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  display: grid;
  grid-template-columns: 156px minmax(0, 1fr);
  grid-template-rows: auto 1fr auto;
  min-height: 100vh;
}

a {
  color: #394d63;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

a:active {
  color: #000;
  background: #add8e6;
  text-decoration: underline;
}

img {
  border: 0;
}

.site-header {
  position: relative;
  grid-column: 1 / -1;
  min-height: 130px;
  padding: 32px 10px 23px;
}

.home-link {
  display: block;
  width: fit-content;
}

.logo {
  display: block;
}

.languages {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  gap: 2px;
}

.languages > * {
  height: 24px;
}

.languages [aria-current="page"] {
  font-weight: bold;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.languages [aria-disabled="true"] {
  color: #555;
}

.languages img {
  margin-right: 5px;
  vertical-align: middle;
}

.site-navigation {
  padding: 10px 2px 0 4px;
}

.menu {
  display: block;
  min-height: 30px;
  margin-bottom: 2px;
  padding: 3px 7px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: #d0e8ff;
  background: #52799e;
  font-weight: bold;
  text-align: center;
  overflow-wrap: anywhere;
}

.menu:hover,
.menu:focus-visible {
  color: #fff;
  box-shadow: inset 2px 2px 3px #c0d2e1, inset -2px -2px 3px #294e76;
  text-decoration: none;
  text-shadow: 2px 2px 2px #426280;
}

.menu:focus-visible {
  outline: 2px solid #294e76;
  outline-offset: 2px;
}

.menu[aria-current] {
  color: #fff;
  background: #394d63;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.menu:active {
  box-shadow: inset 2px 2px 3px #294e76;
}

@media (forced-colors: active) {
  .menu {
    border-color: ButtonText;
  }
}

main {
  min-width: 0;
  padding-left: 2px;
}

h1 {
  margin: 10px 0;
  padding: 2px 2px 2px 5px;
  color: #fff;
  background: #52799e;
  font-size: 14pt;
}

h2 {
  margin: 10px 0;
  padding: 5px;
  border-top: 1px solid #52799e;
  font-size: 12pt;
}

h1 + h2 {
  border-top: 0;
}

.dictionaries > h1 + h2 {
  border-top: 1px solid #52799e;
}

.dictionary-index {
  margin: 10px 5px;
}

.dictionary-index ul {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  list-style: none;
}

.dictionary-index li {
  margin: 0;
}

.dictionary-index a {
  display: inline-block;
  padding: 3px 0;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.dictionary-index a:focus-visible {
  outline: 2px solid #294e76;
  outline-offset: 2px;
}

h3 {
  margin: 10px 0 5px 12px;
  padding: 5px;
  font-size: 11pt;
}

p {
  margin-bottom: 5px;
  padding: 5px;
}

ul {
  list-style: url(bullet.png) outside;
}

li {
  margin-left: 40px;
}

li > p {
  margin: 0;
  padding: 0;
}

.plain {
  margin: 0;
  padding: 0;
}

code {
  font-family: monospace;
  font-size: 0.9em;
}

.game-modes {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.game-modes > div {
  padding: 6pt 12pt;
}

.game-modes > div:nth-child(even) {
  border-left: 2px solid #52799e;
}

.game-modes > div:nth-child(n + 3) {
  border-top: 2px solid #52799e;
}

.content-space {
  height: 1lh;
}

.screenshot-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  max-width: 72rem;
  margin: 12px 16px 24px;
}

.screenshot-gallery figure {
  height: 100%;
  border: 1px solid #9fb2c4;
}

.screenshot-thumbnail {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 4 / 3;
  padding: 10px;
  background: #f2f5f7;
}

.screenshot-thumbnail img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
}

.screenshot-thumbnail:hover,
.screenshot-thumbnail:focus-visible {
  outline: 2px solid #52799e;
  outline-offset: 2px;
}

.screenshot-gallery figcaption {
  padding: 10px 12px;
  border-top: 1px solid #9fb2c4;
  background: #e9eff5;
  font-weight: bold;
  line-height: 1.5;
}

@media (max-width: 850px) {
  .screenshot-gallery {
    grid-template-columns: minmax(0, 1fr);
  }
}

.site-footer {
  grid-column: 1 / -1;
  min-height: 54px;
  border-top: 2px groove #52799e;
  font-size: 0.8em;
}

.legal-note {
  color: #555;
  font-size: inherit;
}

.footer-navigation {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  padding: 12px 10px;
  font-size: 1rem;
}

.footer-navigation a {
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.footer-navigation a[aria-current="page"] {
  font-weight: bold;
}

.footer-navigation a:focus-visible {
  outline: 2px solid #294e76;
  outline-offset: 2px;
}
