:root {
  color-scheme: dark;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: #ededed;
  background: #000000;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

html,
body {
  /* 保留单指纵向滚动，禁用浏览器的双击与双指缩放。 */
  touch-action: pan-y;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 28px 20px;
  padding: max(28px, env(safe-area-inset-top)) max(20px, env(safe-area-inset-right)) max(28px, env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-left));
  background: #000000;
}

.home {
  width: 100%;
  text-align: center;
}

.mascot {
  display: flex;
  justify-content: center;
}

.mascot img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: min(50svh, calc(100svh - 320px));
  object-fit: contain;
}

.placeholder {
  width: 152px;
  max-width: 48vw;
  height: auto;
  color: #caa0cc;
}

[hidden] {
  display: none !important;
}

.games {
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  justify-items: center;
  gap: 10px;
  font-size: 16px;
  line-height: 1.5;
}

.games li {
  max-width: 100%;
  overflow-wrap: anywhere;
}

.game-link {
  display: inline-block;
  padding: 10px 16px;
  color: #dedede;
  text-decoration: none;
}

.game-link:hover {
  color: #caa0cc;
}

.game-link:focus-visible {
  outline: 1px solid #caa0cc;
  outline-offset: 3px;
  border-radius: 2px;
}

.game-upcoming {
  padding: 5px 16px;
  color: #aaaaaa;
}

.game-status {
  display: block;
  margin-top: 3px;
  font-size: 10px;
  line-height: 1.5;
  letter-spacing: 0.09em;
  color: #888888;
}

.script-note {
  color: #aaaaaa;
  font-size: 14px;
}

@media (max-height: 500px) {
  body {
    padding-top: 16px;
    padding-bottom: 16px;
  }

  .mascot img {
    max-height: min(50svh, calc(100svh - 240px));
  }

  .placeholder {
    max-height: 24svh;
  }

  .games {
    margin-top: 12px;
    gap: 4px;
    font-size: 15px;
  }
}
