.site-header .nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}

.site-header .nav-links > a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 10px;
  border-radius: 10px;
  color: inherit;
  font-size: 0.84rem;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  touch-action: manipulation;
}

.site-header .nav-links > a:hover,
.site-header .nav-links > a:focus-visible {
  color: #f5fbff;
  background: rgba(100, 215, 255, 0.1);
  outline: none;
}

.site-header .nav-links > a.games-link {
  border: 1px solid rgba(100, 215, 255, 0.46);
  color: #f5fbff;
  background: rgba(100, 215, 255, 0.11);
  font-weight: 900;
}

@media (max-width: 680px), (max-height: 620px) and (pointer: coarse) {
  .site-header .nav {
    min-width: 0;
    width: 100%;
    gap: 8px;
  }

  .site-header .brand {
    flex: 0 0 auto;
  }

  .site-header .brand-copy {
    display: none;
  }

  .site-header .nav-links {
    display: flex;
    flex: 0 1 auto;
    gap: 2px;
    min-width: 0;
    margin-left: auto;
  }

  .site-header .nav-links > a,
  .site-header .nav-links > a.games-link {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 5px;
    border-radius: 10px;
    font-size: 0.7rem;
    line-height: 1;
    white-space: nowrap;
    touch-action: manipulation;
  }

  body.card-duel-page .site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    height: 48px;
  }

  body.card-duel-page .site-header .mark {
    width: 32px;
    height: 32px;
  }

  body.card-duel-page .game-head {
    top: 48px;
    z-index: 45;
    padding: 4px;
  }

  body.card-duel-page .scoreboard {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 3px;
  }

  body.card-duel-page .score-chip {
    display: grid;
    grid-template-columns: 1fr;
    justify-items: center;
    width: auto;
    min-height: 38px;
    padding: 3px 2px;
    overflow: hidden;
    font-size: clamp(0.56rem, 2.5vw, 0.66rem);
    line-height: 1.05;
    text-align: center;
    white-space: nowrap;
  }

  body.card-duel-page .score-chip b {
    max-width: 100%;
    margin: 2px 0 0;
    overflow: hidden;
    font-size: 0.85rem;
    line-height: 1;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}
