:root {
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: #202421;
  background: #f4f5f3;
  letter-spacing: 0;
}

* {
  box-sizing: border-box;
}

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

body {
  display: grid;
  grid-template-rows: 1fr auto;
  min-height: 100vh;
  min-height: 100dvh;
  background: #f4f5f3;
}

.portal {
  width: min(680px, calc(100% - 32px));
  margin: auto;
  padding: 48px 0 36px;
}

.portal-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.site-mark {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 2px solid #202421;
  border-radius: 6px;
  background: #ffffff;
  font-size: 14px;
  font-weight: 800;
}

h1,
p {
  margin: 0;
}

h1 {
  font-size: 28px;
  line-height: 1.25;
}

.portal-header p {
  margin-top: 4px;
  color: #626a64;
  font-size: 14px;
}

.game-list {
  display: grid;
  gap: 10px;
}

.game-link {
  --accent: #3376a8;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 28px;
  align-items: center;
  min-height: 82px;
  padding: 12px 16px;
  border: 1px solid #d8ddd9;
  border-left: 6px solid var(--accent);
  border-radius: 6px;
  color: inherit;
  background: #ffffff;
  text-decoration: none;
  transition: border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

.game-link:hover {
  border-color: var(--accent);
  box-shadow: 0 5px 16px rgb(24 32 27 / 10%);
  transform: translateY(-1px);
}

.game-link:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent) 35%, transparent);
  outline-offset: 2px;
}

.game-link.duel {
  --accent: #b6463a;
}

.game-link.burgundy {
  --accent: #537f55;
}

.game-number {
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
}

.game-name {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.game-name strong {
  overflow-wrap: anywhere;
  font-size: 17px;
  line-height: 1.35;
}

.game-name small {
  color: #69716b;
  font-size: 12px;
  line-height: 1.4;
}

.arrow {
  color: var(--accent);
  font-size: 22px;
  text-align: right;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 16px;
  padding: 18px 16px calc(18px + env(safe-area-inset-bottom));
  border-top: 1px solid #dde1de;
  color: #6d746f;
  font-size: 12px;
  text-align: center;
}

.site-footer a {
  color: #4d5750;
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

@media (max-width: 480px) {
  .portal {
    width: min(100% - 24px, 680px);
    padding-top: 28px;
  }

  .portal-header {
    margin-bottom: 18px;
  }

  .site-mark {
    width: 46px;
    height: 46px;
  }

  h1 {
    font-size: 24px;
  }

  .game-link {
    min-height: 76px;
    padding: 10px 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .game-link {
    transition: none;
  }
}
