@font-face {
  font-family: 'Anybody version';
  src: url(/fonts/anybody-version.woff2) format('woff2');
  font-display: swap;
}

:root {
  --bg: #8acfe8;
  --ink: #155495;
}

:root[data-mode='five'] {
  --bg: #2f72b2;
  --ink: #ffd500;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  margin: 0;
}

body {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100svh;
  background: var(--bg);
  color: var(--ink);
}

main {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: min(100% - 32px, 640px, (100svh - 80px) * 0.78);
  padding: 24px 0 8px;
}

h1 {
  margin: 0;
  font: inherit;
}

.line {
  display: block;
  width: 100%;
  height: auto;
  fill: var(--ink);
}

.frog {
  display: block;
  width: 100%;
  height: auto;
  margin: 2% 0;
}

.frog[hidden] {
  display: none;
}

footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 8px 16px 17px;
}

.badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px;
}

.credit {
  margin: 0;
  color: var(--ink);
  font: 11px/1.45 system-ui, -apple-system, 'Segoe UI', sans-serif;
  text-align: center;
}

@media (max-width: 640px) {
  .credit {
    font-size: 10px;
    text-wrap: balance;
  }

  .credit br {
    display: none;
  }
}

@media (max-width: 400px) {
  footer {
    padding-inline: 6px;
  }

  .credit {
    font-size: 9.5px;
  }
}

.pogono,
.pogono img {
  display: block;
}

.version {
  height: 16px;
  padding: 0 5px;
  background: #4a2b16;
  color: #f8f3ea;
  font-family: 'Anybody version', sans-serif;
  font-size: 10px;
  line-height: 16px;
  letter-spacing: 0.04em;
}

.langs {
  display: flex;
  gap: 4px;
  margin-left: 8px;
}

.langs a {
  height: 16px;
  padding: 0 4.5px 0 5.5px;
  background: #4a2b16;
  color: #f8f3ea;
  font-family: 'Anybody version', sans-serif;
  font-size: 10px;
  line-height: 18px;
  letter-spacing: 0.04em;
  text-decoration: none;
}

.langs a[aria-current='page'] {
  background: #f8f3ea;
  color: #4a2b16;
}

.langs a:hover,
.langs a:focus-visible {
  background: #ffc21a;
  color: #4a2b16;
}
